@@ -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\Bridge\Symfony\Validator; |
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\Swagger\Serializer; |
15 | 15 | |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | $parametersMemory = []; |
147 | 147 | $pathOperation['parameters'] = []; |
148 | 148 | |
149 | - foreach ($subresourceOperation['identifiers'] as list($identifier, , $hasIdentifier)) { |
|
149 | + foreach ($subresourceOperation['identifiers'] as list($identifier,, $hasIdentifier)) { |
|
150 | 150 | if (true === $hasIdentifier) { |
151 | 151 | $pathOperation['parameters'][] = ['name' => $identifier, 'in' => 'path', 'required' => true, 'type' => 'string']; |
152 | 152 | $parametersMemory[] = $identifier; |
@@ -450,7 +450,7 @@ discard block |
||
450 | 450 | } |
451 | 451 | |
452 | 452 | if (!isset($definitions[$definitionKey])) { |
453 | - $definitions[$definitionKey] = []; // Initialize first to prevent infinite loop |
|
453 | + $definitions[$definitionKey] = []; // Initialize first to prevent infinite loop |
|
454 | 454 | $definitions[$definitionKey] = $this->getDefinitionSchema($resourceClass, $resourceMetadata, $definitions, $serializerContext); |
455 | 455 | } |
456 | 456 |
@@ -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\DataProvider; |
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\Bridge\Doctrine\Orm\Extension; |
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\Bridge\Doctrine\Orm\Extension; |
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\Bridge\Doctrine\Orm\Extension; |
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\Bridge\Doctrine\Orm\Extension; |
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\EventListener; |
15 | 15 | |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | |
134 | 134 | $attributes['subresource_context'] += $context; |
135 | 135 | $identifiers = []; |
136 | - foreach ($attributes['subresource_context']['identifiers'] as $key => list($id, , $hasIdentifier)) { |
|
136 | + foreach ($attributes['subresource_context']['identifiers'] as $key => list($id,, $hasIdentifier)) { |
|
137 | 137 | if (true === $hasIdentifier) { |
138 | 138 | $identifiers[$id] = $request->attributes->get($id); |
139 | 139 | } |
@@ -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\GraphQl\Type; |
15 | 15 | |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | 'description' => 'The id of this node.', |
119 | 119 | ], |
120 | 120 | ], |
121 | - 'resolveType' => function ($value) { |
|
121 | + 'resolveType' => function($value) { |
|
122 | 122 | if (!isset($value[ItemNormalizer::ITEM_KEY])) { |
123 | 123 | return null; |
124 | 124 | } |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | } |
235 | 235 | |
236 | 236 | parse_str($key, $parsed); |
237 | - array_walk_recursive($parsed, function (&$value) use ($graphqlFilterType) { |
|
237 | + array_walk_recursive($parsed, function(&$value) use ($graphqlFilterType) { |
|
238 | 238 | $value = $graphqlFilterType; |
239 | 239 | }); |
240 | 240 | $args = $this->mergeFilterArgs($args, $parsed, $resourceMetadata, $key); |
@@ -387,7 +387,7 @@ discard block |
||
387 | 387 | 'name' => $shortName, |
388 | 388 | 'description' => $resourceMetadata->getDescription(), |
389 | 389 | 'resolveField' => $this->defaultFieldResolver, |
390 | - 'fields' => function () use ($resourceClass, $resourceMetadata, $input, $mutationName) { |
|
390 | + 'fields' => function() use ($resourceClass, $resourceMetadata, $input, $mutationName) { |
|
391 | 391 | return $this->getResourceObjectTypeFields($resourceClass, $resourceMetadata, $input, $mutationName); |
392 | 392 | }, |
393 | 393 | 'interfaces' => [$this->getNodeInterface()], |