Completed
Pull Request — master (#65)
by Christoffer
02:22 queued 21s
created
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/Validation/Rule/NoFragmentCyclesRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
 
96 96
                 $this->validationContext->reportError(
97 97
                     new ValidationException(
98
-                        fragmentCycleMessage($spreadName, array_map(function (FragmentSpreadNode $spread) {
98
+                        fragmentCycleMessage($spreadName, array_map(function(FragmentSpreadNode $spread) {
99 99
                             return $spread->getNameValue();
100 100
                         }, $cyclePath)),
101 101
                         array_merge($cyclePath, [$spreadNode])
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.