Skip to content

Commit

Permalink
run cs:fix
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
julien-nc committed May 29, 2024
1 parent cf19d63 commit 9b5587e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
namespace OCA\OpenAi\AppInfo;

use OCA\OpenAi\Capabilities;
use OCA\OpenAi\TaskProcessing\STTProvider;
use OCA\OpenAi\TaskProcessing\HeadlineProvider;
use OCA\OpenAi\TaskProcessing\TextToTextProvider;
use OCA\OpenAi\TaskProcessing\STTProvider;
use OCA\OpenAi\TaskProcessing\SummaryProvider;
use OCA\OpenAi\TaskProcessing\TopicsProvider;
use OCA\OpenAi\TaskProcessing\TextToImageProvider;
use OCA\OpenAi\TaskProcessing\TextToTextProvider;
use OCA\OpenAi\TaskProcessing\TopicsProvider;
use OCA\OpenAi\Translation\TranslationProvider;
use OCP\AppFramework\App;
use OCP\AppFramework\Bootstrap\IBootContext;
Expand Down
8 changes: 4 additions & 4 deletions tests/unit/Providers/OpenAiProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
use OCA\OpenAi\Db\QuotaUsageMapper;
use OCA\OpenAi\Service\OpenAiAPIService;
use OCA\OpenAi\Service\OpenAiSettingsService;
use OCA\OpenAi\TaskProcessing\TextToTextProvider;
use OCA\OpenAi\TaskProcessing\HeadlineProvider;
use OCA\OpenAi\TaskProcessing\SummaryProvider;
use OCA\OpenAi\TaskProcessing\TextToTextProvider;
use OCA\OpenAi\Translation\TranslationProvider;
use OCP\Http\Client\IClient;
use OCP\Http\Client\IClientService;
Expand Down Expand Up @@ -137,7 +137,7 @@ public function testFreePromptProvider(): void {

$this->iClient->expects($this->once())->method('post')->with($url, $options)->willReturn($iResponse);

$result = $freePromptProvider->process(self::TEST_USER1, ['input' => $prompt], fn() => null);
$result = $freePromptProvider->process(self::TEST_USER1, ['input' => $prompt], fn () => null);
$this->assertEquals('This is a test response.', $result['output']);

// Check that token usage is logged properly
Expand Down Expand Up @@ -194,7 +194,7 @@ public function testHeadlineProvider(): void {

$this->iClient->expects($this->once())->method('post')->with($url, $options)->willReturn($iResponse);

$result = $headlineProvider->process(self::TEST_USER1, ['input' => $prompt], fn() => null);
$result = $headlineProvider->process(self::TEST_USER1, ['input' => $prompt], fn () => null);
$this->assertEquals('This is a test response.', $result['output']);

// Check that token usage is logged properly
Expand Down Expand Up @@ -250,7 +250,7 @@ public function testSummaryProvider(): void {

$this->iClient->expects($this->once())->method('post')->with($url, $options)->willReturn($iResponse);

$result = $summaryProvider->process(self::TEST_USER1, ['input' => $prompt], fn() => null);
$result = $summaryProvider->process(self::TEST_USER1, ['input' => $prompt], fn () => null);
$this->assertEquals('This is a test response.', $result['output']);

// Check that token usage is logged properly
Expand Down

0 comments on commit 9b5587e

Please sign in to comment.