Skip to content

Commit 5f9dc4a

Browse files
committed
Fix code style with PHP CS Fixer
- Run php-cs-fixer fix to apply Symfony coding standards - Add trailing newlines to files that lost them during CS fixing - All tests continue to pass after formatting changes
1 parent 1c88c6c commit 5f9dc4a

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

src/ai-bundle/src/Command/ChatCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,4 +194,3 @@ private function getAvailableAgentNames(): array
194194
}
195195
}
196196

197-

src/ai-bundle/src/Command/PlatformInvokeCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
use Symfony\Component\Console\Completion\CompletionSuggestions;
2424
use Symfony\Component\Console\Input\InputArgument;
2525
use Symfony\Component\Console\Input\InputInterface;
26-
use Symfony\Component\Console\Input\InputOption;
2726
use Symfony\Component\Console\Output\OutputInterface;
2827
use Symfony\Component\Console\Style\SymfonyStyle;
2928
use Symfony\Component\DependencyInjection\ServiceLocator;
@@ -121,7 +120,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
121120
try {
122121
$messages = new MessageBag();
123122
$messages->add(Message::ofUser($this->message));
124-
123+
125124
$resultPromise = $this->platform->invoke($this->model, $messages);
126125
$result = $resultPromise->getResult();
127126

@@ -131,6 +130,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
131130
$io->writeln($result->getContent());
132131
} else {
133132
$io->error('Unexpected response type from platform');
133+
134134
return Command::FAILURE;
135135
}
136136
} catch (\Exception $e) {
@@ -160,5 +160,5 @@ private function createModelForPlatform(string $platformName, string $modelName)
160160
default => new Model($modelName), // Fallback to generic model
161161
};
162162
}
163-
164163
}
164+

src/ai-bundle/tests/Command/ChatCommandTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,4 +256,3 @@ private function createServiceLocator(array $agents): ServiceLocator
256256
}
257257
}
258258

259-

src/ai-bundle/tests/Command/PlatformInvokeCommandTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#[UsesClass(InvalidArgumentException::class)]
2525
final class PlatformInvokeCommandTest extends TestCase
2626
{
27-
2827
public function testExecuteWithNonExistentPlatform()
2928
{
3029
$platforms = $this->createMock(ServiceLocator::class);

0 commit comments

Comments
 (0)