@@ -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 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | ->defaultValue('') |
| 46 | 46 | ->beforeNormalization() |
| 47 | 47 | ->ifNull() |
| 48 | - ->then(function ($v) { return ''; }) |
|
| 48 | + ->then(function($v) { return ''; }) |
|
| 49 | 49 | ->end() |
| 50 | 50 | ->end() |
| 51 | 51 | ->scalarNode('description') |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | ->defaultValue('') |
| 54 | 54 | ->beforeNormalization() |
| 55 | 55 | ->ifNull() |
| 56 | - ->then(function ($v) { return ''; }) |
|
| 56 | + ->then(function($v) { return ''; }) |
|
| 57 | 57 | ->end() |
| 58 | 58 | ->end() |
| 59 | 59 | ->scalarNode('version') |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | ->defaultValue('0.0.0') |
| 63 | 63 | ->end() |
| 64 | 64 | ->scalarNode('default_operation_path_resolver') |
| 65 | - ->beforeNormalization()->always(function ($v) { |
|
| 65 | + ->beforeNormalization()->always(function($v) { |
|
| 66 | 66 | @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); |
| 67 | 67 | |
| 68 | 68 | return $v; |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | ->useAttributeAsKey('exception_class') |
| 219 | 219 | ->beforeNormalization() |
| 220 | 220 | ->ifArray() |
| 221 | - ->then(function (array $exceptionToStatus) { |
|
| 221 | + ->then(function(array $exceptionToStatus) { |
|
| 222 | 222 | foreach ($exceptionToStatus as &$httpStatusCode) { |
| 223 | 223 | if (\is_int($httpStatusCode)) { |
| 224 | 224 | continue; |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | ->prototype('integer')->end() |
| 238 | 238 | ->validate() |
| 239 | 239 | ->ifArray() |
| 240 | - ->then(function (array $exceptionToStatus) { |
|
| 240 | + ->then(function(array $exceptionToStatus) { |
|
| 241 | 241 | foreach ($exceptionToStatus as $httpStatusCode) { |
| 242 | 242 | if ($httpStatusCode < 100 || $httpStatusCode >= 600) { |
| 243 | 243 | throw new InvalidConfigurationException(sprintf('The HTTP status code "%s" is not valid.', $httpStatusCode)); |
@@ -269,7 +269,7 @@ discard block |
||
| 269 | 269 | ->useAttributeAsKey('format') |
| 270 | 270 | ->beforeNormalization() |
| 271 | 271 | ->ifArray() |
| 272 | - ->then(function ($v) { |
|
| 272 | + ->then(function($v) { |
|
| 273 | 273 | foreach ($v as $format => $value) { |
| 274 | 274 | if (isset($value['mime_types'])) { |
| 275 | 275 | continue; |