@@ -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\Doctrine\Orm\Filter; |
| 15 | 15 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | public function __construct(ManagerRegistry $managerRegistry, RequestStack $requestStack, string $orderParameterName, LoggerInterface $logger = null, array $properties = null) |
| 57 | 57 | { |
| 58 | 58 | if (null !== $properties) { |
| 59 | - $properties = array_map(function ($propertyOptions) { |
|
| 59 | + $properties = array_map(function($propertyOptions) { |
|
| 60 | 60 | // shorthand for default direction |
| 61 | 61 | if (\is_string($propertyOptions)) { |
| 62 | 62 | $propertyOptions = [ |
@@ -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; |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | ->useAttributeAsKey('exception_class') |
| 201 | 201 | ->beforeNormalization() |
| 202 | 202 | ->ifArray() |
| 203 | - ->then(function (array $exceptionToStatus) { |
|
| 203 | + ->then(function(array $exceptionToStatus) { |
|
| 204 | 204 | foreach ($exceptionToStatus as &$httpStatusCode) { |
| 205 | 205 | if (\is_int($httpStatusCode)) { |
| 206 | 206 | continue; |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | ->prototype('integer')->end() |
| 220 | 220 | ->validate() |
| 221 | 221 | ->ifArray() |
| 222 | - ->then(function (array $exceptionToStatus) { |
|
| 222 | + ->then(function(array $exceptionToStatus) { |
|
| 223 | 223 | foreach ($exceptionToStatus as $httpStatusCode) { |
| 224 | 224 | if ($httpStatusCode < 100 || $httpStatusCode >= 600) { |
| 225 | 225 | throw new InvalidConfigurationException(sprintf('The HTTP status code "%s" is not valid.', $httpStatusCode)); |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | ->useAttributeAsKey('format') |
| 252 | 252 | ->beforeNormalization() |
| 253 | 253 | ->ifArray() |
| 254 | - ->then(function ($v) { |
|
| 254 | + ->then(function($v) { |
|
| 255 | 255 | foreach ($v as $format => $value) { |
| 256 | 256 | if (isset($value['mime_types'])) { |
| 257 | 257 | continue; |