@@ -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 |
@@ -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 |
@@ -110,7 +110,7 @@ |
||
110 | 110 | private function logError( |
111 | 111 | Throwable $e, |
112 | 112 | UuidInterface $uuid, |
113 | - array $context = [] |
|
113 | + array $context = [ ] |
|
114 | 114 | ): void { |
115 | 115 | $this->logger?->error( |
116 | 116 | sprintf('%s (%d)', $e->getMessage(), $e->getCode()), |
@@ -8,7 +8,7 @@ |
||
8 | 8 | use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector; |
9 | 9 | use Rector\Set\ValueObject\SetList; |
10 | 10 | |
11 | -return static function (RectorConfig $rectorConfig): void { |
|
11 | +return static function(RectorConfig $rectorConfig): void { |
|
12 | 12 | $rectorConfig->importNames(); |
13 | 13 | |
14 | 14 | $rectorConfig->paths([ |
@@ -17,7 +17,7 @@ |
||
17 | 17 | string $message, |
18 | 18 | int $code, |
19 | 19 | Throwable $previous = null, |
20 | - private readonly array $context = [] |
|
20 | + private readonly array $context = [ ] |
|
21 | 21 | ) { |
22 | 22 | parent::__construct($message, $code, $previous); |
23 | 23 | } |