@@ -9,7 +9,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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()], |
@@ -9,7 +9,7 @@ |
||
| 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 | |
@@ -9,7 +9,7 @@ discard block |
||
| 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 |
||
| 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', |
@@ -9,7 +9,7 @@ discard block |
||
| 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 |
||
| 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 { |