Completed
Pull Request — master (#1589)
by Antoine
03:37
created
src/Graphql/ExecutorInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Graphql/Serializer/ItemNormalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
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
  *
Please login to merge, or discard this patch.
src/Graphql/Type/SchemaBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         ];
Please login to merge, or discard this patch.
src/Graphql/Resolver/ItemMutationResolverFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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 {
Please login to merge, or discard this patch.
src/Graphql/Resolver/ItemResolverFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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];
Please login to merge, or discard this patch.
src/Graphql/Resolver/ResourceFieldResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Graphql/Resolver/CollectionResolverFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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',
Please login to merge, or discard this patch.
src/Graphql/Resolver/ResolverFactoryInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Bridge/Doctrine/Orm/Filter/OrderFilter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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 = [
Please login to merge, or discard this patch.