@@ -68,7 +68,7 @@ |
||
68 | 68 | { |
69 | 69 | $errors = validateSchema($schema); |
70 | 70 | if (!empty($errors)) { |
71 | - $message = \implode("\n", array_map(function (ValidationException $error) { |
|
71 | + $message = \implode("\n", array_map(function(ValidationException $error) { |
|
72 | 72 | return $error->getMessage(); |
73 | 73 | }, $errors)); |
74 | 74 |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | // Assert each interface field arg is implemented. |
298 | 298 | foreach ($interfaceField->getArguments() as $interfaceArgument) { |
299 | 299 | $argumentName = $interfaceArgument->getName(); |
300 | - $objectArgument = find($objectField->getArguments(), function (Argument $argument) use ($argumentName) { |
|
300 | + $objectArgument = find($objectField->getArguments(), function(Argument $argument) use ($argumentName) { |
|
301 | 301 | return $argument->getName() === $argumentName; |
302 | 302 | }); |
303 | 303 | |
@@ -357,7 +357,7 @@ discard block |
||
357 | 357 | foreach ($objectFields as $objectArgument) { |
358 | 358 | $argumentName = $objectArgument->getName(); |
359 | 359 | $interfaceArgument = find($interfaceField->getArguments(), |
360 | - function (Argument $argument) use ($argumentName) { |
|
360 | + function(Argument $argument) use ($argumentName) { |
|
361 | 361 | return $argument->getName() === $argumentName; |
362 | 362 | }); |
363 | 363 | |
@@ -687,7 +687,7 @@ discard block |
||
687 | 687 | return null; |
688 | 688 | } |
689 | 689 | |
690 | - return \array_filter($node->getTypes(), function (NamedTypeNode $type) use ($memberTypeName) { |
|
690 | + return \array_filter($node->getTypes(), function(NamedTypeNode $type) use ($memberTypeName) { |
|
691 | 691 | return $type->getNameValue() === $memberTypeName; |
692 | 692 | }); |
693 | 693 | } |
@@ -706,7 +706,7 @@ discard block |
||
706 | 706 | return null; |
707 | 707 | } |
708 | 708 | |
709 | - return \array_filter($node->getValues(), function (NamedTypeNode $type) use ($valueName) { |
|
709 | + return \array_filter($node->getValues(), function(NamedTypeNode $type) use ($valueName) { |
|
710 | 710 | return $type->getNameValue() === $valueName; |
711 | 711 | }); |
712 | 712 | } |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | */ |
150 | 150 | public function getLocationsAsArray(): ?array |
151 | 151 | { |
152 | - return !empty($this->locations) ? array_map(function (SourceLocation $location) { |
|
152 | + return !empty($this->locations) ? array_map(function(SourceLocation $location) { |
|
153 | 153 | return $location->toArray(); |
154 | 154 | }, $this->locations) : null; |
155 | 155 | } |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | protected function resolvePositions(?array $positions) |
216 | 216 | { |
217 | 217 | if (null === $positions && !empty($this->nodes)) { |
218 | - $positions = array_reduce($this->nodes, function (array $list, ?NodeInterface $node) { |
|
218 | + $positions = array_reduce($this->nodes, function(array $list, ?NodeInterface $node) { |
|
219 | 219 | if (null !== $node) { |
220 | 220 | $location = $node->getLocation(); |
221 | 221 | if (null !== $location) { |
@@ -243,11 +243,11 @@ discard block |
||
243 | 243 | protected function resolveLocations(?array $positions, ?Source $source) |
244 | 244 | { |
245 | 245 | if (null !== $positions && null !== $source) { |
246 | - $locations = array_map(function ($position) use ($source) { |
|
246 | + $locations = array_map(function($position) use ($source) { |
|
247 | 247 | return SourceLocation::fromSource($source, $position); |
248 | 248 | }, $positions); |
249 | 249 | } elseif (!empty($this->nodes)) { |
250 | - $locations = array_reduce($this->nodes, function (array $list, NodeInterface $node) { |
|
250 | + $locations = array_reduce($this->nodes, function(array $list, NodeInterface $node) { |
|
251 | 251 | $location = $node->getLocation(); |
252 | 252 | if (null !== $location) { |
253 | 253 | $list[] = SourceLocation::fromSource($location->getSource(), $location->getStart()); |
@@ -89,7 +89,7 @@ |
||
89 | 89 | /** @var OperationTypeDefinitionNode $operationTypeNode */ |
90 | 90 | $operationTypeNode = find( |
91 | 91 | $node->getOperationTypes(), |
92 | - function (OperationTypeDefinitionNode $operationType) use ($operation) { |
|
92 | + function(OperationTypeDefinitionNode $operationType) use ($operation) { |
|
93 | 93 | return $operationType->getOperation() === $operation; |
94 | 94 | } |
95 | 95 | ); |