@@ -115,7 +115,7 @@ discard block |
||
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 |
||
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 | ) { |
@@ -30,7 +30,7 @@ |
||
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 | } |
@@ -11,7 +11,7 @@ |
||
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 | } |
@@ -11,7 +11,7 @@ |
||
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 | } |
@@ -43,7 +43,7 @@ |
||
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 |