@@ -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 |