@@ -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 | |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | 'description' => 'The id of this node.', |
116 | 116 | ], |
117 | 117 | ], |
118 | - 'resolveType' => function ($value) { |
|
118 | + 'resolveType' => function($value) { |
|
119 | 119 | if (!isset($value[ItemNormalizer::ITEM_KEY])) { |
120 | 120 | return null; |
121 | 121 | } |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | 'name' => $shortName, |
313 | 313 | 'description' => $resourceMetadata->getDescription(), |
314 | 314 | 'resolveField' => $this->defaultFieldResolver, |
315 | - 'fields' => function () use ($resourceClass, $input, $mutationName) { |
|
315 | + 'fields' => function() use ($resourceClass, $input, $mutationName) { |
|
316 | 316 | return $this->getResourceObjectTypeFields($resourceClass, $input, $mutationName); |
317 | 317 | }, |
318 | 318 | 'interfaces' => [$this->getNodeInterface()], |
@@ -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\GraphQl; |
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 | * This file is part of the API Platform project. |
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\GraphQl; |
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\GraphQl\Resolver; |
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 |