@@ -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\Bridge\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\Bridge\Graphql\Type; |
15 | 15 | |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | $configuration = [ |
279 | 279 | 'name' => $shortName, |
280 | 280 | 'description' => $resourceMetadata->getDescription(), |
281 | - 'fields' => function () use ($resource, $operationName, $isInput, $isMutation) { |
|
281 | + 'fields' => function() use ($resource, $operationName, $isInput, $isMutation) { |
|
282 | 282 | return $this->getResourceObjectTypeFields($resource, $operationName, $isInput, $isMutation); |
283 | 283 | }, |
284 | 284 | ]; |
@@ -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 | |
@@ -41,10 +41,10 @@ discard block |
||
41 | 41 | |
42 | 42 | public function createItemMutationResolver(string $resourceClass, string $operationName): callable |
43 | 43 | { |
44 | - return function ($root, $args, $context, ResolveInfo $info) use ($resourceClass, $operationName) { |
|
44 | + return function($root, $args, $context, ResolveInfo $info) use ($resourceClass, $operationName) { |
|
45 | 45 | $identifiers = $this->identifiersExtractor->getIdentifiersFromResourceClass($resourceClass); |
46 | 46 | if (\count($identifiers) > 1) { |
47 | - $identifierPairs = \array_map(function ($identifier) use ($args, $info) { |
|
47 | + $identifierPairs = \array_map(function($identifier) use ($args, $info) { |
|
48 | 48 | if (\is_array($args['input'][$identifier])) { |
49 | 49 | if (\count($args['input'][$identifier]) > 1) { |
50 | 50 | throw Error::createLocatedError('Composite identifiers are not allowed for a resource already used as a composite identifier', $info->fieldNodes, $info->path); |