@@ -62,7 +62,7 @@ |
||
62 | 62 | $line < \count($lines) ? leftPad($padLen, $nextLineNum) . ': ' . $lines[$line] : null, |
63 | 63 | ]; |
64 | 64 | |
65 | - return implode("\n", array_filter($outputLines, function ($line) { |
|
65 | + return implode("\n", array_filter($outputLines, function($line) { |
|
66 | 66 | return null !== $line; |
67 | 67 | })); |
68 | 68 | } |
@@ -59,7 +59,7 @@ |
||
59 | 59 | preg_match_all("/\r\n|[\n\r]/", mb_substr($source->getBody(), 0, $position), $matches, PREG_OFFSET_CAPTURE); |
60 | 60 | |
61 | 61 | foreach ($matches[0] as $index => $match) { |
62 | - $line += 1; |
|
62 | + $line += 1; |
|
63 | 63 | $column = $position + 1 - ($match[1] + mb_strlen($match[0])); |
64 | 64 | } |
65 | 65 |
@@ -42,7 +42,7 @@ |
||
42 | 42 | /** @var Directive $directiveDefinition */ |
43 | 43 | $directiveDefinition = find( |
44 | 44 | $this->context->getSchema()->getDirectives(), |
45 | - function (Directive $definition) use ($node) { |
|
45 | + function(Directive $definition) use ($node) { |
|
46 | 46 | return $definition->getName() === $node->getNameValue(); |
47 | 47 | } |
48 | 48 | ); |
@@ -20,7 +20,7 @@ |
||
20 | 20 | public function enterNode(NodeInterface $node): ?NodeInterface |
21 | 21 | { |
22 | 22 | if ($node instanceof DocumentNode) { |
23 | - $this->operationCount = \count(array_filter($node->getDefinitions(), function ($definition) { |
|
23 | + $this->operationCount = \count(array_filter($node->getDefinitions(), function($definition) { |
|
24 | 24 | return $definition instanceof OperationDefinitionNode; |
25 | 25 | })); |
26 | 26 | } |
@@ -84,7 +84,7 @@ |
||
84 | 84 | |
85 | 85 | $this->context->reportError( |
86 | 86 | new ValidationException( |
87 | - fragmentCycleMessage($spreadName, array_map(function (FragmentSpreadNode $spread) { |
|
87 | + fragmentCycleMessage($spreadName, array_map(function(FragmentSpreadNode $spread) { |
|
88 | 88 | return $spread->getNameValue(); |
89 | 89 | }, $cyclePath)), |
90 | 90 | array_merge($cyclePath, [$spreadNode]) |
@@ -137,5 +137,5 @@ |
||
137 | 137 | */ |
138 | 138 | function locationShorthandToArray(array $shorthand): ?array |
139 | 139 | { |
140 | - return isset($shorthand[0], $shorthand[1]) ? ['line' => $shorthand[0], 'column' => $shorthand[1]] :null; |
|
140 | + return isset($shorthand[0], $shorthand[1]) ? ['line' => $shorthand[0], 'column' => $shorthand[1]] : null; |
|
141 | 141 | } |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | public function getFragment(string $name): ?FragmentDefinitionNode |
145 | 145 | { |
146 | 146 | if (empty($this->fragments)) { |
147 | - $this->fragments = array_reduce($this->documentNode->getDefinitions(), function ($fragments, $definition) { |
|
147 | + $this->fragments = array_reduce($this->documentNode->getDefinitions(), function($fragments, $definition) { |
|
148 | 148 | if ($definition instanceof FragmentDefinitionNode) { |
149 | 149 | $fragments[$definition->getNameValue()] = $definition; |
150 | 150 | } |
@@ -224,7 +224,7 @@ discard block |
||
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 | if ($node instanceof VariableDefinitionNode) { |
229 | 229 | return null; |
230 | 230 | } |