@@ -9,7 +9,7 @@ |
||
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\Operation\Factory; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
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\Operation\Factory; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
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\Operation\Factory; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
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\Operation; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
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\Operation; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
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\Operation; |
15 | 15 |
@@ -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 | if (isset($v['default_operation_path_resolver'])) { |
49 | 49 | @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); |
50 | 50 | } |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | ->useAttributeAsKey('exception_class') |
187 | 187 | ->beforeNormalization() |
188 | 188 | ->ifArray() |
189 | - ->then(function (array $exceptionToStatus) { |
|
189 | + ->then(function(array $exceptionToStatus) { |
|
190 | 190 | foreach ($exceptionToStatus as &$httpStatusCode) { |
191 | 191 | if (is_int($httpStatusCode)) { |
192 | 192 | continue; |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | ->prototype('integer')->end() |
204 | 204 | ->validate() |
205 | 205 | ->ifArray() |
206 | - ->then(function (array $exceptionToStatus) { |
|
206 | + ->then(function(array $exceptionToStatus) { |
|
207 | 207 | foreach ($exceptionToStatus as $httpStatusCode) { |
208 | 208 | if ($httpStatusCode < 100 || $httpStatusCode >= 600) { |
209 | 209 | throw new InvalidConfigurationException(sprintf('The HTTP status code "%s" is not valid.', $httpStatusCode)); |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | ->useAttributeAsKey('format') |
236 | 236 | ->beforeNormalization() |
237 | 237 | ->ifArray() |
238 | - ->then(function ($v) { |
|
238 | + ->then(function($v) { |
|
239 | 239 | foreach ($v as $format => $value) { |
240 | 240 | if (isset($value['mime_types'])) { |
241 | 241 | continue; |