Completed
Pull Request — master (#1460)
by Alan
02:47
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
 
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
         $configuration = [
279 279
             'name' => $shortName,
280 280
             'description' => $resourceMetadata->getDescription(),
281
-            'fields' => function () use ($resource, $operationName, $isInput, $isMutation) {
281
+            'fields' => function() use ($resource, $operationName, $isInput, $isMutation) {
282 282
                 return $this->getResourceObjectTypeFields($resource, $operationName, $isInput, $isMutation);
283 283
             },
284 284
         ];
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
 
@@ -41,10 +41,10 @@  discard block
 block discarded – undo
41 41
 
42 42
     public function createItemMutationResolver(string $resourceClass, string $operationName): callable
43 43
     {
44
-        return function ($root, $args, $context, ResolveInfo $info) use ($resourceClass, $operationName) {
44
+        return function($root, $args, $context, ResolveInfo $info) use ($resourceClass, $operationName) {
45 45
             $identifiers = $this->identifiersExtractor->getIdentifiersFromResourceClass($resourceClass);
46 46
             if (\count($identifiers) > 1) {
47
-                $identifierPairs = \array_map(function ($identifier) use ($args, $info) {
47
+                $identifierPairs = \array_map(function($identifier) use ($args, $info) {
48 48
                     if (\is_array($args['input'][$identifier])) {
49 49
                         if (\count($args['input'][$identifier]) > 1) {
50 50
                             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.