@@ -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 | |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | $pathOperation['parameters'] = $parameters; |
| 134 | 134 | } |
| 135 | 135 | |
| 136 | - foreach ($subresourceOperation['identifiers'] as list($identifier, , $hasIdentifier)) { |
|
| 136 | + foreach ($subresourceOperation['identifiers'] as list($identifier,, $hasIdentifier)) { |
|
| 137 | 137 | if (true === $hasIdentifier) { |
| 138 | 138 | $pathOperation['parameters'][] = ['name' => $identifier, 'in' => 'path', 'required' => true, 'type' => 'string']; |
| 139 | 139 | } |
@@ -415,7 +415,7 @@ discard block |
||
| 415 | 415 | $definitionKey = $this->getDefinitionKey($resourceMetadata->getShortName(), (array) ($serializerContext['groups'] ?? [])); |
| 416 | 416 | |
| 417 | 417 | if (!isset($definitions[$definitionKey])) { |
| 418 | - $definitions[$definitionKey] = []; // Initialize first to prevent infinite loop |
|
| 418 | + $definitions[$definitionKey] = []; // Initialize first to prevent infinite loop |
|
| 419 | 419 | $definitions[$definitionKey] = $this->getDefinitionSchema($resourceClass, $resourceMetadata, $definitions, $serializerContext); |
| 420 | 420 | } |
| 421 | 421 | |
@@ -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 | |
| 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 | } |