Passed
Pull Request — master (#301)
by Christoffer
03:15
created
src/Schema/Resolver/ResolverRegistry.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
             return $middleware;
116 116
         }
117 117
 
118
-        return \array_filter($middleware, function (ResolverMiddlewareInterface $mw) use ($resolverMiddleware) {
118
+        return \array_filter($middleware, function(ResolverMiddlewareInterface $mw) use ($resolverMiddleware) {
119 119
             return \in_array(\get_class($mw), $resolverMiddleware, true);
120 120
         });
121 121
     }
@@ -129,8 +129,8 @@  discard block
 block discarded – undo
129 129
     {
130 130
         return \array_reduce(
131 131
             $middleware,
132
-            function (callable $resolveCallback, ResolverMiddlewareInterface $middleware) {
133
-                return function ($rootValue, array $arguments, $context = null, ?ResolveInfo $info = null) use (
132
+            function(callable $resolveCallback, ResolverMiddlewareInterface $middleware) {
133
+                return function($rootValue, array $arguments, $context = null, ?ResolveInfo $info = null) use (
134 134
                     $resolveCallback,
135 135
                     $middleware
136 136
                 ) {
Please login to merge, or discard this patch.
src/Schema/Resolver/AbstractFieldResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      */
31 31
     public function getResolveCallback(): ?callable
32 32
     {
33
-        return function ($rootValue, array $arguments, $context = null, ?ResolveInfo $info = null) {
33
+        return function($rootValue, array $arguments, $context = null, ?ResolveInfo $info = null) {
34 34
             return $this->resolve($rootValue, $arguments, $context, $info);
35 35
         };
36 36
     }
Please login to merge, or discard this patch.
src/Schema/Resolver/AbstractTypeResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
      */
12 12
     public function getResolveCallback(): ?callable
13 13
     {
14
-        return function (string $fieldName) {
14
+        return function(string $fieldName) {
15 15
             return $this->getResolver($fieldName);
16 16
         };
17 17
     }
Please login to merge, or discard this patch.
src/Schema/Resolver/ResolverTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
      */
12 12
     public function getTypeResolver(): ?callable
13 13
     {
14
-        return function ($rootValue, $context = null, ?ResolveInfo $info = null) {
14
+        return function($rootValue, $context = null, ?ResolveInfo $info = null) {
15 15
             return $this->resolveType($rootValue, $context, $info);
16 16
         };
17 17
     }
Please login to merge, or discard this patch.
src/Schema/Resolver/ResolverMap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      */
44 44
     public function getResolveCallback(): ?callable
45 45
     {
46
-        return function (string $fieldName) {
46
+        return function(string $fieldName) {
47 47
             $resolver = $this->getResolver($fieldName);
48 48
 
49 49
             return $resolver instanceof ResolverInterface
Please login to merge, or discard this patch.