@@ -10,7 +10,7 @@ |
||
| 10 | 10 | use Symfony\Component\Console\Output\OutputInterface; |
| 11 | 11 | use Yiisoft\Yii\Console\ExitCode; |
| 12 | 12 | |
| 13 | -#[AsCommand(name: 'hello', description: 'An example command', hidden: false)] |
|
| 13 | +#[AsCommand(name: 'hello', description: 'An example command', hidden: false) ] |
|
| 14 | 14 | final class HelloCommand extends Command |
| 15 | 15 | { |
| 16 | 16 | protected function execute(InputInterface $input, OutputInterface $output): int |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | return $this->dataResponseFactory->createResponse($e->getMessage(), $e->getCode()); |
| 28 | 28 | } catch (InputValidationException $e) { |
| 29 | 29 | return $this->dataResponseFactory->createResponse( |
| 30 | - $e->getResult()->getErrorMessages()[0], |
|
| 30 | + $e->getResult()->getErrorMessages()[ 0 ], |
|
| 31 | 31 | Status::BAD_REQUEST |
| 32 | 32 | ); |
| 33 | 33 | } |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | |
| 18 | 18 | public function format(DataResponse $dataResponse): ResponseInterface |
| 19 | 19 | { |
| 20 | - $response = $dataResponse->withData( |
|
| 20 | + $response=$dataResponse->withData( |
|
| 21 | 21 | $this->apiResponseDataFactory |
| 22 | 22 | ->createFromResponse($dataResponse) |
| 23 | 23 | ->toArray(), |