Completed
Pull Request — master (#45)
by Christoffer
02:17
created
src/Language/helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,5 +137,5 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Validation/ValidationContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
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
 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
                     if ($node instanceof VariableDefinitionNode) {
229 229
                         return null;
230 230
                     }
Please login to merge, or discard this patch.