@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | */ |
| 27 | 27 | protected function enterFragmentDefinition(FragmentDefinitionNode $node): VisitorResult |
| 28 | 28 | { |
| 29 | - $this->validateFragementNode($node, function (FragmentDefinitionNode $node) { |
|
| 29 | + $this->validateFragementNode($node, function(FragmentDefinitionNode $node) { |
|
| 30 | 30 | return fragmentOnNonCompositeMessage((string)$node, (string)$node->getTypeCondition()); |
| 31 | 31 | }); |
| 32 | 32 | |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | */ |
| 39 | 39 | protected function enterInlineFragment(InlineFragmentNode $node): VisitorResult |
| 40 | 40 | { |
| 41 | - $this->validateFragementNode($node, function (InlineFragmentNode $node) { |
|
| 41 | + $this->validateFragementNode($node, function(InlineFragmentNode $node) { |
|
| 42 | 42 | return inlineFragmentOnNonCompositeMessage((string)$node->getTypeCondition()); |
| 43 | 43 | }); |
| 44 | 44 | |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | protected function enterDocument(DocumentNode $node): VisitorResult |
| 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 | |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | public function getFragment(string $name): ?FragmentDefinitionNode |
| 169 | 169 | { |
| 170 | 170 | if (empty($this->fragments)) { |
| 171 | - $this->fragments = array_reduce($this->document->getDefinitions(), function ($fragments, $definition) { |
|
| 171 | + $this->fragments = array_reduce($this->document->getDefinitions(), function($fragments, $definition) { |
|
| 172 | 172 | if ($definition instanceof FragmentDefinitionNode) { |
| 173 | 173 | $fragments[$definition->getNameValue()] = $definition; |
| 174 | 174 | } |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | $usages = []; |
| 245 | 245 | $typeInfo = new TypeInfo($this->schema); |
| 246 | 246 | |
| 247 | - $enterCallback = function (NodeInterface $node) use (&$usages, $typeInfo): VisitorResult { |
|
| 247 | + $enterCallback = function(NodeInterface $node) use (&$usages, $typeInfo): VisitorResult { |
|
| 248 | 248 | if ($node instanceof VariableDefinitionNode) { |
| 249 | 249 | return new VisitorResult(null); |
| 250 | 250 | } |