Completed
Pull Request — master (#1460)
by Kévin
03:26
created
src/Bridge/Graphql/Resolver/ItemMutationResolverFactoryInterface.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\Bridge\Graphql\Resolver;
15 15
 
Please login to merge, or discard this patch.
src/Bridge/Graphql/Type/SchemaBuilder.php 1 patch
Spacing   +2 added lines, -2 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\Bridge\Graphql\Type;
15 15
 
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
         $configuration = [
272 272
             'name' => $shortName,
273 273
             'description' => $resourceMetadata->getDescription(),
274
-            'fields' => function () use ($resource, $isInput, $isMutation, $mutationName) {
274
+            'fields' => function() use ($resource, $isInput, $isMutation, $mutationName) {
275 275
                 return $this->getResourceObjectTypeFields($resource, $isInput, $isMutation, $mutationName);
276 276
             },
277 277
         ];
Please login to merge, or discard this patch.
src/Bridge/Graphql/Resolver/ItemMutationResolverFactory.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\Bridge\Graphql\Resolver;
15 15
 
@@ -47,10 +47,10 @@  discard block
 block discarded – undo
47 47
 
48 48
     public function createItemMutationResolver(string $resourceClass, string $mutationName): callable
49 49
     {
50
-        return function ($root, $args, $context, ResolveInfo $info) use ($resourceClass, $mutationName) {
50
+        return function($root, $args, $context, ResolveInfo $info) use ($resourceClass, $mutationName) {
51 51
             $identifiers = $this->identifiersExtractor->getIdentifiersFromResourceClass($resourceClass);
52 52
             if (\count($identifiers) > 1) {
53
-                $identifierPairs = \array_map(function ($identifier) use ($args, $info) {
53
+                $identifierPairs = \array_map(function($identifier) use ($args, $info) {
54 54
                     if (\is_array($args['input'][$identifier])) {
55 55
                         if (\count($args['input'][$identifier]) > 1) {
56 56
                             throw Error::createLocatedError('Composite identifiers are not allowed for a resource already used as a composite identifier', $info->fieldNodes, $info->path);
Please login to merge, or discard this patch.