Completed
Pull Request — master (#1240)
by Amrouche
03:07
created
src/Swagger/Serializer/DocumentationNormalizer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
133 133
                 $parametersMemory = [];
134 134
                 $pathOperation['parameters'] = [];
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
                         $parametersMemory[] = $identifier;
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
         $definitionKey = $this->getDefinitionKey($resourceMetadata->getShortName(), (array) ($serializerContext['groups'] ?? []));
425 425
 
426 426
         if (!isset($definitions[$definitionKey])) {
427
-            $definitions[$definitionKey] = [];  // Initialize first to prevent infinite loop
427
+            $definitions[$definitionKey] = []; // Initialize first to prevent infinite loop
428 428
             $definitions[$definitionKey] = $this->getDefinitionSchema($resourceClass, $resourceMetadata, $definitions, $serializerContext);
429 429
         }
430 430
 
Please login to merge, or discard this patch.