@@ -26,7 +26,7 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | protected function enterDocument(DocumentNode $node): ?NodeInterface |
| 28 | 28 | { |
| 29 | - $this->operationCount = \count(\array_filter($node->getDefinitions(), function ($definition) { |
|
| 29 | + $this->operationCount = \count(\array_filter($node->getDefinitions(), function($definition) { |
|
| 30 | 30 | return $definition instanceof OperationDefinitionNode; |
| 31 | 31 | })); |
| 32 | 32 | |
@@ -101,7 +101,7 @@ |
||
| 101 | 101 | |
| 102 | 102 | $this->context->reportError( |
| 103 | 103 | new ValidationException( |
| 104 | - fragmentCycleMessage($spreadName, \array_map(function (FragmentSpreadNode $spread) { |
|
| 104 | + fragmentCycleMessage($spreadName, \array_map(function(FragmentSpreadNode $spread) { |
|
| 105 | 105 | return $spread->getNameValue(); |
| 106 | 106 | }, $cyclePath)), |
| 107 | 107 | \array_merge($cyclePath, [$spreadNode]) |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | |
| 48 | 48 | $context = $this->contextBuilder->build($schema, $document, $typeInfo); |
| 49 | 49 | |
| 50 | - $visitors = array_map(function (RuleInterface $rule) use ($context) { |
|
| 50 | + $visitors = array_map(function(RuleInterface $rule) use ($context) { |
|
| 51 | 51 | return $rule->setContext($context); |
| 52 | 52 | }, $rules); |
| 53 | 53 | |