|
@@ -146,7 +146,7 @@ discard block |
|
|
block discarded – undo |
|
146
|
146
|
public function getFragment(string $name): ?FragmentDefinitionNode |
|
147
|
147
|
{ |
|
148
|
148
|
if (empty($this->fragments)) { |
|
149
|
|
- $this->fragments = array_reduce($this->documentNode->getDefinitions(), function ($fragments, $definition) { |
|
|
149
|
+ $this->fragments = array_reduce($this->documentNode->getDefinitions(), function($fragments, $definition) { |
|
150
|
150
|
if ($definition instanceof FragmentDefinitionNode) { |
|
151
|
151
|
$fragments[$definition->getNameValue()] = $definition; |
|
152
|
152
|
} |
|
@@ -224,7 +224,7 @@ discard block |
|
|
block discarded – undo |
|
224
|
224
|
$usages = []; |
|
225
|
225
|
$typeInfo = new TypeInfo($this->schema); |
|
226
|
226
|
$visitor = new TypeInfoVisitor($typeInfo, new Visitor( |
|
227
|
|
- function (NodeInterface $node) use (&$usages, $typeInfo): ?NodeInterface |
|
|
227
|
+ function(NodeInterface $node) use (&$usages, $typeInfo): ?NodeInterface |
|
228
|
228
|
{ |
|
229
|
229
|
if ($node instanceof VariableDefinitionNode) { |
|
230
|
230
|
return null; |
Please login to merge, or discard this patch.