Completed
Pull Request — master (#1585)
by Kévin
03:09
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
 
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
                     'description' => 'The id of this node.',
117 117
                 ],
118 118
             ],
119
-            'resolveType' => function ($value) {
119
+            'resolveType' => function($value) {
120 120
                 if (!isset($value[ItemNormalizer::ITEM_KEY])) {
121 121
                     return null;
122 122
                 }
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
             'name' => $shortName,
312 312
             'description' => $resourceMetadata->getDescription(),
313 313
             'resolveField' => $this->defaultFieldResolver,
314
-            'fields' => function () use ($resourceClass, $input, $mutationName) {
314
+            'fields' => function() use ($resourceClass, $input, $mutationName) {
315 315
                 return $this->getResourceObjectTypeFields($resourceClass, $input, $mutationName);
316 316
             },
317 317
             'interfaces' => [$this->getNodeInterface()],
Please login to merge, or discard this patch.
src/Graphql/Resolver/Factory/ResolverFactoryInterface.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\Factory;
15 15
 
Please login to merge, or discard this patch.
src/Graphql/Resolver/Factory/CollectionResolverFactory.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\Graphql\Resolver\Factory;
15 15
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
     public function __invoke(string $resourceClass = null, string $rootClass = null, string $operationName = null): callable
58 58
     {
59
-        return function ($source, $args, $context, ResolveInfo $info) use ($resourceClass, $rootClass) {
59
+        return function($source, $args, $context, ResolveInfo $info) use ($resourceClass, $rootClass) {
60 60
             if (null !== $request = $this->requestStack->getCurrentRequest()) {
61 61
                 $request->attributes->set(
62 62
                     '_graphql_collections_args',
Please login to merge, or discard this patch.
src/Graphql/Resolver/Factory/ItemMutationResolverFactory.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\Graphql\Resolver\Factory;
15 15
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
     public function __invoke(string $resourceClass = null, string $rootClass = null, string $operationName = null): callable
54 54
     {
55
-        return function ($root, $args, $context, ResolveInfo $info) use ($resourceClass, $operationName) {
55
+        return function($root, $args, $context, ResolveInfo $info) use ($resourceClass, $operationName) {
56 56
             $item = null;
57 57
             if (isset($args['input']['id'])) {
58 58
                 try {
Please login to merge, or discard this patch.