@@ -435,7 +435,6 @@ |
||
| 435 | 435 | /** |
| 436 | 436 | * Normalizes a collection of relations (to-many). |
| 437 | 437 | * |
| 438 | - * @param object $relatedObject |
|
| 439 | 438 | * @param string|null $format |
| 440 | 439 | */ |
| 441 | 440 | protected function normalizeCollectionOfRelations(PropertyMetadata $propertyMetadata, iterable $attributeValue, string $resourceClass, string $format = null, array $context): array |
@@ -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 | * This file is part of the API Platform project. |
| 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\Type; |
| 15 | 15 | |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | 'name' => $shortName, |
| 248 | 248 | 'description' => $resourceMetadata->getDescription(), |
| 249 | 249 | 'resolveField' => $this->defaultFieldResolver, |
| 250 | - 'fields' => function () use ($resource, $isInput, $isMutation, $mutationName) { |
|
| 250 | + 'fields' => function() use ($resource, $isInput, $isMutation, $mutationName) { |
|
| 251 | 251 | return $this->getResourceObjectTypeFields($resource, $isInput, $isMutation, $mutationName); |
| 252 | 252 | }, |
| 253 | 253 | ]; |
@@ -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 @@ 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', |