@@ -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; |
| 15 | 15 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | |
| 52 | 52 | public function __invoke(string $resourceClass = null, string $rootClass = null, string $operationName = null): callable |
| 53 | 53 | { |
| 54 | - return function ($root, $args, $context, ResolveInfo $info) use ($resourceClass, $operationName) { |
|
| 54 | + return function($root, $args, $context, ResolveInfo $info) use ($resourceClass, $operationName) { |
|
| 55 | 55 | $item = null; |
| 56 | 56 | if (isset($args['input']['id'])) { |
| 57 | 57 | try { |
@@ -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; |
| 15 | 15 | |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | public function __invoke(string $resourceClass = null, string $rootClass = null, string $operationName = null): callable |
| 44 | 44 | { |
| 45 | - return function ($source, $args, $context, ResolveInfo $info) use ($resourceClass) { |
|
| 45 | + return function($source, $args, $context, ResolveInfo $info) use ($resourceClass) { |
|
| 46 | 46 | // Data already fetched and normalized (field or nested resource) |
| 47 | 47 | if (isset($source[$info->fieldName])) { |
| 48 | 48 | return $source[$info->fieldName]; |
@@ -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; |
| 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; |
| 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 @@ |
||
| 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; |
| 15 | 15 | |