Completed
Push — master ( c7c2b5...52d784 )
by Sam
01:37 queued 01:32
created
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/ValidationContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     public function getFragment(string $name): ?FragmentDefinitionNode
144 144
     {
145 145
         if (empty($this->fragments)) {
146
-            $this->fragments = array_reduce($this->document->getDefinitions(), function ($fragments, $definition) {
146
+            $this->fragments = array_reduce($this->document->getDefinitions(), function($fragments, $definition) {
147 147
                 if ($definition instanceof FragmentDefinitionNode) {
148 148
                     $fragments[$definition->getNameValue()] = $definition;
149 149
                 }
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
             $usages   = [];
222 222
             $typeInfo = new TypeInfo($this->schema);
223 223
             $visitor  = new TypeInfoVisitor($typeInfo, new Visitor(
224
-                function (NodeInterface $node) use (&$usages, $typeInfo): ?NodeInterface {
224
+                function(NodeInterface $node) use (&$usages, $typeInfo): ?NodeInterface {
225 225
                     if ($node instanceof VariableDefinitionNode) {
226 226
                         return null;
227 227
                     }
Please login to merge, or discard this patch.
src/Validation/messages.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -211,7 +211,7 @@
 block discarded – undo
211 211
 function conflictReasonMessage($reason): string
212 212
 {
213 213
     if (\is_array($reason)) {
214
-        return implode(' and ', array_map(function ($subreason) {
214
+        return implode(' and ', array_map(function($subreason) {
215 215
             [$fieldName, $message] = $subreason;
216 216
             return sprintf('subfields "%s" conflict because %s', $fieldName, conflictReasonMessage($message));
217 217
         }, $reason));
Please login to merge, or discard this patch.
src/Validation/Validator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 
39 39
         $context = $this->contextBuilder->build($schema, $document, $typeInfo);
40 40
 
41
-        $visitors = array_map(function (RuleInterface $rule) use ($context) {
41
+        $visitors = array_map(function(RuleInterface $rule) use ($context) {
42 42
             return $rule->setValidationContext($context);
43 43
         }, $rules ?? specifiedRules());
44 44
 
Please login to merge, or discard this patch.
src/Validation/Rule/FieldOnCorrectTypeRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
 
107 107
         $suggestedInterfaceTypes = array_keys($interfaceUsageCount);
108 108
 
109
-        uasort($suggestedInterfaceTypes, function ($a, $b) use ($interfaceUsageCount) {
109
+        uasort($suggestedInterfaceTypes, function($a, $b) use ($interfaceUsageCount) {
110 110
             return $interfaceUsageCount[$b] - $interfaceUsageCount[$a];
111 111
         });
112 112
 
Please login to merge, or discard this patch.
src/Language/Writer/AbstractWriter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     protected function printNodes(array $nodes): array
38 38
     {
39
-        return array_map(function ($node) {
39
+        return array_map(function($node) {
40 40
             return $this->printer->print($node);
41 41
         }, $nodes);
42 42
     }
Please login to merge, or discard this patch.
src/Language/Node/FieldsTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      */
27 27
     public function getFieldsAsArray(): array
28 28
     {
29
-        return array_map(function (SerializationInterface $node) {
29
+        return array_map(function(SerializationInterface $node) {
30 30
             return $node->toArray();
31 31
         }, $this->fields);
32 32
     }
Please login to merge, or discard this patch.
src/Language/Node/DocumentNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      */
34 34
     public function getDefinitionsAsArray(): array
35 35
     {
36
-        return array_map(function (SerializationInterface $node) {
36
+        return array_map(function(SerializationInterface $node) {
37 37
             return $node->toArray();
38 38
         }, $this->definitions);
39 39
     }
Please login to merge, or discard this patch.
src/Language/Node/InputArgumentsTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      */
27 27
     public function getArgumentsAsArray(): array
28 28
     {
29
-        return array_map(function (SerializationInterface $node) {
29
+        return array_map(function(SerializationInterface $node) {
30 30
             return $node->toArray();
31 31
         }, $this->arguments);
32 32
     }
Please login to merge, or discard this patch.