@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | */ |
| 125 | 125 | public function getDirective(string $name): ?Directive |
| 126 | 126 | { |
| 127 | - return find($this->directives, function (Directive $directive) use ($name) { |
|
| 127 | + return find($this->directives, function(Directive $directive) use ($name) { |
|
| 128 | 128 | return $directive->getName() === $name; |
| 129 | 129 | }); |
| 130 | 130 | } |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | ) |
| 178 | 178 | ); |
| 179 | 179 | |
| 180 | - $this->_possibleTypeMap = array_reduce($possibleTypes, function (array $map, TypeInterface $type) { |
|
| 180 | + $this->_possibleTypeMap = array_reduce($possibleTypes, function(array $map, TypeInterface $type) { |
|
| 181 | 181 | $map[$type->getName()] = true; |
| 182 | 182 | return $map; |
| 183 | 183 | }); |
@@ -389,7 +389,7 @@ discard block |
||
| 389 | 389 | if ($type instanceof ObjectType || $type instanceof InterfaceType) { |
| 390 | 390 | foreach ($type->getFields() as $field) { |
| 391 | 391 | if ($field->hasArguments()) { |
| 392 | - $fieldArgTypes = array_map(function (Argument $argument) { |
|
| 392 | + $fieldArgTypes = array_map(function(Argument $argument) { |
|
| 393 | 393 | return $argument->getType(); |
| 394 | 394 | }, $field->getArguments()); |
| 395 | 395 | |
@@ -420,7 +420,7 @@ discard block |
||
| 420 | 420 | return $map; |
| 421 | 421 | } |
| 422 | 422 | |
| 423 | - return array_reduce($directive->getArguments(), function ($map, Argument $argument) { |
|
| 423 | + return array_reduce($directive->getArguments(), function($map, Argument $argument) { |
|
| 424 | 424 | return typeMapReducer($map, $argument->getType()); |
| 425 | 425 | }, $map); |
| 426 | 426 | } |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | $this->schema = $schema; |
| 79 | 79 | $this->getFieldDefinitionFunction = null !== $getFieldDefinitionFunction |
| 80 | 80 | ? $getFieldDefinitionFunction |
| 81 | - : function (SchemaInterface $schema, TypeInterface $parentType, FieldNode $fieldNode) { |
|
| 81 | + : function(SchemaInterface $schema, TypeInterface $parentType, FieldNode $fieldNode) { |
|
| 82 | 82 | return getFieldDefinition($schema, $parentType, $fieldNode); |
| 83 | 83 | }; |
| 84 | 84 | |
@@ -106,7 +106,7 @@ |
||
| 106 | 106 | if (null !== $fieldOrDirective) { |
| 107 | 107 | $argumentDefinition = find( |
| 108 | 108 | $fieldOrDirective->getArguments(), |
| 109 | - function (Argument $argument) use ($node) { |
|
| 109 | + function(Argument $argument) use ($node) { |
|
| 110 | 110 | return $argument->getName() === $node->getNameValue(); |
| 111 | 111 | } |
| 112 | 112 | ); |