Completed
Pull Request — 2.1 (#1607)
by Grégoire
03:23
created
src/GraphQl/Type/SchemaBuilder.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\GraphQl\Type;
15 15
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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()],
Please login to merge, or discard this patch.
src/GraphQl/Executor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 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\GraphQl;
15 15
 
Please login to merge, or discard this patch.
src/GraphQl/Serializer/ItemNormalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 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
  * This file is part of the API Platform project.
15 15
  *
Please login to merge, or discard this patch.
src/GraphQl/ExecutorInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 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\GraphQl;
15 15
 
Please login to merge, or discard this patch.
src/GraphQl/Resolver/ItemResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 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\GraphQl\Resolver;
15 15
 
Please login to merge, or discard this patch.
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
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.