@@ -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 | |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | ->defaultValue('0.0.0') |
59 | 59 | ->end() |
60 | 60 | ->scalarNode('default_operation_path_resolver') |
61 | - ->beforeNormalization()->always(function ($v) { |
|
61 | + ->beforeNormalization()->always(function($v) { |
|
62 | 62 | @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); |
63 | 63 | |
64 | 64 | return $v; |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | ->end() |
88 | 88 | ->booleanNode('enable_fos_user')->defaultValue(class_exists(FOSUserBundle::class))->info('Enable the FOSUserBundle integration.')->end() |
89 | 89 | ->booleanNode('enable_nelmio_api_doc') |
90 | - ->beforeNormalization()->always(function ($v) { |
|
90 | + ->beforeNormalization()->always(function($v) { |
|
91 | 91 | if ($v) { |
92 | 92 | @trigger_error('Enabling the NelmioApiDocBundle integration has been deprecated in 2.2 and will be removed in 3.0. NelmioApiDocBundle 3 has native support for API Platform.', E_USER_DEPRECATED); |
93 | 93 | } |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | ->useAttributeAsKey('exception_class') |
250 | 250 | ->beforeNormalization() |
251 | 251 | ->ifArray() |
252 | - ->then(function (array $exceptionToStatus) { |
|
252 | + ->then(function(array $exceptionToStatus) { |
|
253 | 253 | foreach ($exceptionToStatus as &$httpStatusCode) { |
254 | 254 | if (is_int($httpStatusCode)) { |
255 | 255 | continue; |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | ->prototype('integer')->end() |
269 | 269 | ->validate() |
270 | 270 | ->ifArray() |
271 | - ->then(function (array $exceptionToStatus) { |
|
271 | + ->then(function(array $exceptionToStatus) { |
|
272 | 272 | foreach ($exceptionToStatus as $httpStatusCode) { |
273 | 273 | if ($httpStatusCode < 100 || $httpStatusCode >= 600) { |
274 | 274 | throw new InvalidConfigurationException(sprintf('The HTTP status code "%s" is not valid.', $httpStatusCode)); |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | ->useAttributeAsKey('format') |
301 | 301 | ->beforeNormalization() |
302 | 302 | ->ifArray() |
303 | - ->then(function ($v) { |
|
303 | + ->then(function($v) { |
|
304 | 304 | foreach ($v as $format => $value) { |
305 | 305 | if (isset($value['mime_types'])) { |
306 | 306 | continue; |