@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace ApiPlatform\Core\Bridge\Symfony\Bundle\DependencyInjection; |
15 | 15 | |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | ->scalarNode('description')->defaultValue('')->info('The description of the API.')->end() |
45 | 45 | ->scalarNode('version')->defaultValue('0.0.0')->info('The version of the API.')->end() |
46 | 46 | ->scalarNode('default_operation_path_resolver') |
47 | - ->beforeNormalization()->always(function ($v) { |
|
47 | + ->beforeNormalization()->always(function($v) { |
|
48 | 48 | @trigger_error('The use of the `default_operation_path_resolver` has been deprecated in 2.1 and will be removed in 3.0. Use `path_segment_name_generator` instead.', E_USER_DEPRECATED); |
49 | 49 | |
50 | 50 | return $v; |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | ->useAttributeAsKey('exception_class') |
182 | 182 | ->beforeNormalization() |
183 | 183 | ->ifArray() |
184 | - ->then(function (array $exceptionToStatus) { |
|
184 | + ->then(function(array $exceptionToStatus) { |
|
185 | 185 | foreach ($exceptionToStatus as &$httpStatusCode) { |
186 | 186 | if (is_int($httpStatusCode)) { |
187 | 187 | continue; |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | ->prototype('integer')->end() |
201 | 201 | ->validate() |
202 | 202 | ->ifArray() |
203 | - ->then(function (array $exceptionToStatus) { |
|
203 | + ->then(function(array $exceptionToStatus) { |
|
204 | 204 | foreach ($exceptionToStatus as $httpStatusCode) { |
205 | 205 | if ($httpStatusCode < 100 || $httpStatusCode >= 600) { |
206 | 206 | throw new InvalidConfigurationException(sprintf('The HTTP status code "%s" is not valid.', $httpStatusCode)); |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | ->useAttributeAsKey('format') |
233 | 233 | ->beforeNormalization() |
234 | 234 | ->ifArray() |
235 | - ->then(function ($v) { |
|
235 | + ->then(function($v) { |
|
236 | 236 | foreach ($v as $format => $value) { |
237 | 237 | if (isset($value['mime_types'])) { |
238 | 238 | continue; |