@@ -370,7 +370,7 @@ |
||
| 370 | 370 | */ |
| 371 | 371 | protected function printMany(array $nodes): array |
| 372 | 372 | { |
| 373 | - return \array_map(function ($node) { |
|
| 373 | + return \array_map(function($node) { |
|
| 374 | 374 | return $this->print($node); |
| 375 | 375 | }, $nodes); |
| 376 | 376 | } |
@@ -36,8 +36,8 @@ |
||
| 36 | 36 | return false; |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | - return arrayEvery($argumentsA, function (ArgumentNode $argumentA) use ($argumentsB) { |
|
| 40 | - $argumentB = find($argumentsB, function (ArgumentNode $argument) use ($argumentA) { |
|
| 39 | + return arrayEvery($argumentsA, function(ArgumentNode $argumentA) use ($argumentsB) { |
|
| 40 | + $argumentB = find($argumentsB, function(ArgumentNode $argument) use ($argumentA) { |
|
| 41 | 41 | return $argument->getNameValue() === $argumentA->getNameValue(); |
| 42 | 42 | }); |
| 43 | 43 | |
@@ -179,7 +179,7 @@ |
||
| 179 | 179 | $values = []; |
| 180 | 180 | |
| 181 | 181 | /** @var ObjectFieldNode[] $fieldNodes */ |
| 182 | - $fieldNodes = keyMap($node->getFields(), function (ObjectFieldNode $value) { |
|
| 182 | + $fieldNodes = keyMap($node->getFields(), function(ObjectFieldNode $value) { |
|
| 183 | 183 | return $value->getNameValue(); |
| 184 | 184 | }); |
| 185 | 185 | |
@@ -691,13 +691,13 @@ |
||
| 691 | 691 | |
| 692 | 692 | return new Conflict( |
| 693 | 693 | $responseName, |
| 694 | - array_map(function (Conflict $conflict) { |
|
| 694 | + array_map(function(Conflict $conflict) { |
|
| 695 | 695 | return [$conflict->getResponseName(), $conflict->getReason()]; |
| 696 | 696 | }, $conflicts), |
| 697 | - array_reduce($conflicts, function ($allFields, Conflict $conflict) { |
|
| 697 | + array_reduce($conflicts, function($allFields, Conflict $conflict) { |
|
| 698 | 698 | return array_merge($allFields, $conflict->getFieldsA()); |
| 699 | 699 | }, [$nodeA]), |
| 700 | - array_reduce($conflicts, function ($allFields, Conflict $conflict) { |
|
| 700 | + array_reduce($conflicts, function($allFields, Conflict $conflict) { |
|
| 701 | 701 | return array_merge($allFields, $conflict->getFieldsB()); |
| 702 | 702 | }, [$nodeB]) |
| 703 | 703 | ); |
@@ -124,7 +124,7 @@ |
||
| 124 | 124 | { |
| 125 | 125 | return arraySome( |
| 126 | 126 | introspectionTypes(), |
| 127 | - function (NamedTypeInterface $introspectionType) use ($type) { |
|
| 127 | + function(NamedTypeInterface $introspectionType) use ($type) { |
|
| 128 | 128 | /** @noinspection PhpUndefinedMethodInspection */ |
| 129 | 129 | return $type->getName() === $introspectionType->getName(); |
| 130 | 130 | } |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | */ |
| 158 | 158 | public function getDirective(string $name): ?Directive |
| 159 | 159 | { |
| 160 | - return find($this->directives, function (Directive $directive) use ($name) { |
|
| 160 | + return find($this->directives, function(Directive $directive) use ($name) { |
|
| 161 | 161 | return $directive->getName() === $name; |
| 162 | 162 | }); |
| 163 | 163 | } |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | |
| 213 | 213 | $this->possibleTypesMap[$abstractTypeName] = \array_reduce( |
| 214 | 214 | $possibleTypes, |
| 215 | - function (array $map, NamedTypeInterface $type) { |
|
| 215 | + function(array $map, NamedTypeInterface $type) { |
|
| 216 | 216 | $map[$type->getName()] = true; |
| 217 | 217 | return $map; |
| 218 | 218 | }, |
@@ -350,7 +350,7 @@ discard block |
||
| 350 | 350 | if ($type instanceof ObjectType || $type instanceof InterfaceType) { |
| 351 | 351 | foreach ($type->getFields() as $field) { |
| 352 | 352 | if ($field->hasArguments()) { |
| 353 | - $fieldArgTypes = \array_map(function (Argument $argument) { |
|
| 353 | + $fieldArgTypes = \array_map(function(Argument $argument) { |
|
| 354 | 354 | return $argument->getType(); |
| 355 | 355 | }, $field->getArguments()); |
| 356 | 356 | |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | return $map; |
| 385 | 385 | } |
| 386 | 386 | |
| 387 | - return \array_reduce($directive->getArguments(), function ($map, Argument $argument) { |
|
| 387 | + return \array_reduce($directive->getArguments(), function($map, Argument $argument) { |
|
| 388 | 388 | return $this->typeMapReducer($map, $argument->getType()); |
| 389 | 389 | }, $map); |
| 390 | 390 | } |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | */ |
| 23 | 23 | public function getVariableDefinitionsAST(): array |
| 24 | 24 | { |
| 25 | - return \array_map(function (VariableDefinitionNode $node) { |
|
| 25 | + return \array_map(function(VariableDefinitionNode $node) { |
|
| 26 | 26 | return $node->toAST(); |
| 27 | 27 | }, $this->variableDefinitions); |
| 28 | 28 | } |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | */ |
| 38 | 38 | public function getDefinitionsAST(): array |
| 39 | 39 | { |
| 40 | - return \array_map(function (NodeInterface $node) { |
|
| 40 | + return \array_map(function(NodeInterface $node) { |
|
| 41 | 41 | return $node->toAST(); |
| 42 | 42 | }, $this->definitions); |
| 43 | 43 | } |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | */ |
| 53 | 53 | public function getLocationsAST(): array |
| 54 | 54 | { |
| 55 | - return \array_map(function (NameNode $node) { |
|
| 55 | + return \array_map(function(NameNode $node) { |
|
| 56 | 56 | return $node->toAST(); |
| 57 | 57 | }, $this->locations); |
| 58 | 58 | } |