Completed
Pull Request — master (#1460)
by Alan
02:54
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/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,14 +47,14 @@  discard block
 block discarded – undo
47 47
 
48 48
     public function createItemMutationResolver(string $resourceClass, string $operationName, array $operation): callable
49 49
     {
50
-        return function ($root, $args, $context, ResolveInfo $info) use ($resourceClass, $operationName, $operation) {
50
+        return function($root, $args, $context, ResolveInfo $info) use ($resourceClass, $operationName, $operation) {
51 51
             $resourceMetadata = $this->resourceMetadataFactory->create($resourceClass);
52 52
             $resourceShortName = $resourceMetadata->getShortName();
53 53
 
54 54
             $route = RouteNameGenerator::generate($operationName, $resourceShortName, 'item');
55 55
             $identifiers = $this->identifiersExtractor->getIdentifiersFromResourceClass($resourceClass);
56 56
             if (count($identifiers) > 1) {
57
-                $identifierPairs = array_map(function ($identifier) use ($args) {
57
+                $identifierPairs = array_map(function($identifier) use ($args) {
58 58
                     return "{$identifier}={$args['input'][$identifier]}";
59 59
                 }, $identifiers);
60 60
                 $id = implode(';', $identifierPairs);
Please login to merge, or discard this patch.