Completed
Pull Request — master (#45)
by Christoffer
02:12
created
src/Error/printError.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Language/SourceLocation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Validation/Rule/KnownDirectivesRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
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
             );
Please login to merge, or discard this patch.
src/Validation/ValidationContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
     public function getFragment(string $name): ?FragmentDefinitionNode
116 116
     {
117 117
         if (empty($this->fragments)) {
118
-            $this->fragments = array_reduce($this->documentNode->getDefinitions(), function ($fragments, $definition) {
118
+            $this->fragments = array_reduce($this->documentNode->getDefinitions(), function($fragments, $definition) {
119 119
                 if ($definition instanceof FragmentDefinitionNode) {
120 120
                     $fragments[$definition->getNameValue()] = $definition;
121 121
                 }
Please login to merge, or discard this patch.