@@ -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; |
15 | 15 |
@@ -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 @@ |
||
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 |
@@ -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\Doctrine\Orm\Filter; |
15 | 15 | |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | public function __construct(ManagerRegistry $managerRegistry, RequestStack $requestStack, string $orderParameterName = 'order', LoggerInterface $logger = null, array $properties = null) |
57 | 57 | { |
58 | 58 | if (null !== $properties) { |
59 | - $properties = array_map(function ($propertyOptions) { |
|
59 | + $properties = array_map(function($propertyOptions) { |
|
60 | 60 | // shorthand for default direction |
61 | 61 | if (\is_string($propertyOptions)) { |
62 | 62 | $propertyOptions = [ |