@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | */ |
126 | 126 | public function getDirective(string $name): ?Directive |
127 | 127 | { |
128 | - return find($this->directives, function (Directive $directive) use ($name) { |
|
128 | + return find($this->directives, function(Directive $directive) use ($name) { |
|
129 | 129 | return $directive->getName() === $name; |
130 | 130 | }); |
131 | 131 | } |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | ) |
178 | 178 | ); |
179 | 179 | |
180 | - $this->_possibleTypeMap[$abstractTypeName] = array_reduce($possibleTypes, function (array $map, TypeInterface $type) { |
|
180 | + $this->_possibleTypeMap[$abstractTypeName] = array_reduce($possibleTypes, function(array $map, TypeInterface $type) { |
|
181 | 181 | $map[$type->getName()] = true; |
182 | 182 | return $map; |
183 | 183 | }, []); |
@@ -388,7 +388,7 @@ discard block |
||
388 | 388 | if ($type instanceof ObjectType || $type instanceof InterfaceType) { |
389 | 389 | foreach ($type->getFields() as $field) { |
390 | 390 | if ($field->hasArguments()) { |
391 | - $fieldArgTypes = array_map(function (Argument $argument) { |
|
391 | + $fieldArgTypes = array_map(function(Argument $argument) { |
|
392 | 392 | return $argument->getType(); |
393 | 393 | }, $field->getArguments()); |
394 | 394 | |
@@ -419,7 +419,7 @@ discard block |
||
419 | 419 | return $map; |
420 | 420 | } |
421 | 421 | |
422 | - return array_reduce($directive->getArguments(), function ($map, Argument $argument) { |
|
422 | + return array_reduce($directive->getArguments(), function($map, Argument $argument) { |
|
423 | 423 | return typeMapReducer($map, $argument->getType()); |
424 | 424 | }, $map); |
425 | 425 | } |
@@ -30,7 +30,7 @@ |
||
30 | 30 | if ($typeB instanceof AbstractTypeInterface) { |
31 | 31 | // If both types are abstract, then determine if there is any intersection |
32 | 32 | // between possible concrete types of each. |
33 | - return arraySome($schema->getPossibleTypes($typeA), function (TypeInterface $type) use ($schema, $typeB) { |
|
33 | + return arraySome($schema->getPossibleTypes($typeA), function(TypeInterface $type) use ($schema, $typeB) { |
|
34 | 34 | return $schema->isPossibleType($typeB, $type); |
35 | 35 | }); |
36 | 36 | } |