@@ -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\Bridge\Graphql\Resolver; |
| 15 | 15 | |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | */ |
| 45 | 45 | public function createItemResolver(string $resourceClass, string $rootClass): callable |
| 46 | 46 | { |
| 47 | - return function ($root, $args, $context, ResolveInfo $info) use ($resourceClass, $rootClass) { |
|
| 47 | + return function($root, $args, $context, ResolveInfo $info) use ($resourceClass, $rootClass) { |
|
| 48 | 48 | $rootProperty = $info->fieldName; |
| 49 | 49 | $rootIdentifiers = $this->identifiersExtractor->getIdentifiersFromResourceClass($rootClass); |
| 50 | 50 | if (isset($root[$rootProperty])) { |
@@ -112,7 +112,7 @@ |
||
| 112 | 112 | * |
| 113 | 113 | * @see http://webonyx.github.io/graphql-php/type-system/object-types/ |
| 114 | 114 | * |
| 115 | - * @return array|null |
|
| 115 | + * @return string |
|
| 116 | 116 | */ |
| 117 | 117 | private function getResourceFieldConfiguration(string $fieldDescription = null, Type $type, string $rootResource, bool $isInput = false) |
| 118 | 118 | { |
@@ -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\Bridge\Graphql\Type; |
| 15 | 15 | |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | $configuration = [ |
| 241 | 241 | 'name' => $shortName, |
| 242 | 242 | 'description' => $resourceMetadata->getDescription(), |
| 243 | - 'fields' => function () use ($resource, $isInput) { |
|
| 243 | + 'fields' => function() use ($resource, $isInput) { |
|
| 244 | 244 | return $this->getResourceObjectTypeFields($resource, $isInput); |
| 245 | 245 | }, |
| 246 | 246 | ]; |
@@ -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\Bridge\Graphql\Resolver; |
| 15 | 15 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | */ |
| 57 | 57 | public function createCollectionResolver(string $resourceClass, string $rootClass): callable |
| 58 | 58 | { |
| 59 | - return function ($root, $args, $context, ResolveInfo $info) use ($resourceClass, $rootClass) { |
|
| 59 | + return function($root, $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', |