@@ -153,7 +153,7 @@ |
||
153 | 153 | */ |
154 | 154 | public function getKnownRouteResponseSchemaNumber(): int |
155 | 155 | { |
156 | - return array_reduce($this->getKnownRouteResponseSchemas(), static function (int $counter, array $formatSchemas) { |
|
156 | + return array_reduce($this->getKnownRouteResponseSchemas(), static function(int $counter, array $formatSchemas) { |
|
157 | 157 | return $counter + \count($formatSchemas); |
158 | 158 | }, 0); |
159 | 159 | } |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | ->cannotBeEmpty() |
58 | 58 | ->defaultValue('_method') |
59 | 59 | ->validate() |
60 | - ->ifTrue(static function ($methodName): bool { |
|
60 | + ->ifTrue(static function($methodName): bool { |
|
61 | 61 | return !\is_string($methodName); |
62 | 62 | }) |
63 | 63 | ->thenInvalid('Not a string provided') |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | ->end() |
80 | 80 | ->beforeNormalization() |
81 | 81 | ->ifArray() |
82 | - ->then(static function (array $methods): array { |
|
82 | + ->then(static function(array $methods): array { |
|
83 | 83 | return array_unique(array_map('strtoupper', $methods)); |
84 | 84 | }) |
85 | 85 | ->end() |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | */ |
123 | 123 | protected function addApiVersionSupport(ArrayNodeDefinition $rootNode): void |
124 | 124 | { |
125 | - $versionNormalizer = static function ($version): string { |
|
125 | + $versionNormalizer = static function($version): string { |
|
126 | 126 | if (\is_string($version)) { |
127 | 127 | return $version; |
128 | 128 | } |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | ->end() |
161 | 161 | ->end() |
162 | 162 | ->beforeNormalization() |
163 | - ->always(static function ($prototypeValue): array { |
|
163 | + ->always(static function($prototypeValue): array { |
|
164 | 164 | if (empty($prototypeValue)) { |
165 | 165 | throw new \InvalidArgumentException('No version constraints provided'); |
166 | 166 | } |