@@ -55,7 +55,7 @@ |
||
| 55 | 55 | |
| 56 | 56 | public function lookup(string $methodName): ?ApiMethodInterface |
| 57 | 57 | { |
| 58 | - return $this->methods[$methodName] ?? null; |
|
| 58 | + return $this->methods[ $methodName ] ?? null; |
|
| 59 | 59 | } |
| 60 | 60 | }; |
| 61 | 61 | |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | string $message, |
| 23 | 23 | int $code, |
| 24 | 24 | Throwable $previous = null, |
| 25 | - array $context = [] |
|
| 25 | + array $context = [ ] |
|
| 26 | 26 | ) { |
| 27 | 27 | parent::__construct($message, $code, $previous); |
| 28 | 28 | |
@@ -117,7 +117,7 @@ |
||
| 117 | 117 | private function log( |
| 118 | 118 | Throwable $e, |
| 119 | 119 | UuidInterface $uuid, |
| 120 | - array $context = [] |
|
| 120 | + array $context = [ ] |
|
| 121 | 121 | ): void { |
| 122 | 122 | if ($this->logger !== null) { |
| 123 | 123 | $this->logger->error( |
@@ -11,11 +11,11 @@ |
||
| 11 | 11 | use Rector\Set\ValueObject\SetList; |
| 12 | 12 | use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; |
| 13 | 13 | |
| 14 | -return static function (ContainerConfigurator $containerConfigurator): void { |
|
| 14 | +return static function(ContainerConfigurator $containerConfigurator): void { |
|
| 15 | 15 | $parameters = $containerConfigurator->parameters(); |
| 16 | 16 | |
| 17 | 17 | $parameters->set(Option::PHPSTAN_FOR_RECTOR_PATH, getcwd() . '/phpstan.neon'); |
| 18 | - $parameters->set(Option::PATHS, [__DIR__ . '/src', __DIR__ . '/tests']); |
|
| 18 | + $parameters->set(Option::PATHS, [ __DIR__ . '/src', __DIR__ . '/tests' ]); |
|
| 19 | 19 | $parameters->set(Option::AUTO_IMPORT_NAMES, true); |
| 20 | 20 | |
| 21 | 21 | $containerConfigurator->import(SetList::CODE_QUALITY_STRICT); |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | 'properties' => (object) [ |
| 60 | 60 | 'data' => $methodSchemaContent->properties->response, |
| 61 | 61 | ], |
| 62 | - 'required' => ['data'] |
|
| 62 | + 'required' => [ 'data' ] |
|
| 63 | 63 | ]; |
| 64 | 64 | |
| 65 | 65 | // Validate the response against the response definition in method schema |