Completed
Pull Request — master (#45)
by Christoffer
02:23
created
src/Util/orList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
  */
26 26
 function quotedOrList(array $items): string
27 27
 {
28
-    return orList(array_map(function ($item) {
28
+    return orList(array_map(function($item) {
29 29
         return '"' . $item . '"';
30 30
     }, $items));
31 31
 }
Please login to merge, or discard this patch.
src/Util/suggestionList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
     $result = array_keys($optionsByDistance);
26 26
 
27
-    usort($result, function ($a, $b) use ($optionsByDistance) {
27
+    usort($result, function($a, $b) use ($optionsByDistance) {
28 28
         return $optionsByDistance[$a] - $optionsByDistance[$b];
29 29
     });
30 30
 
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
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
 
106 106
     $suggestedInterfaceTypes = array_keys($interfaceUsageCount);
107 107
 
108
-    uasort($suggestedInterfaceTypes, function ($a, $b) use ($interfaceUsageCount) {
108
+    uasort($suggestedInterfaceTypes, function($a, $b) use ($interfaceUsageCount) {
109 109
         return $interfaceUsageCount[$b] - $interfaceUsageCount[$a];
110 110
     });
111 111
 
Please login to merge, or discard this patch.
src/Validation/Rule/FragmentsOnCompositeTypesRule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,14 +21,14 @@
 block discarded – undo
21 21
         array $path = []
22 22
     ): ?NodeInterface {
23 23
         if ($node instanceof InlineFragmentNode) {
24
-            $this->validateFragementNode($node, function (NodeInterface $node) {
24
+            $this->validateFragementNode($node, function(NodeInterface $node) {
25 25
                 /** @noinspection PhpUndefinedMethodInspection */
26 26
                 return inlineFragmentOnNonCompositeErrorMessage($node->getTypeCondition()->getNameValue());
27 27
             });
28 28
         }
29 29
 
30 30
         if ($node instanceof FragmentDefinitionNode) {
31
-            $this->validateFragementNode($node, function (NodeInterface $node) {
31
+            $this->validateFragementNode($node, function(NodeInterface $node) {
32 32
                 /** @noinspection PhpUndefinedMethodInspection */
33 33
                 return fragmentOnNonCompositeMessage($node->getNameValue(), $node->getTypeCondition()->getNameValue());
34 34
             });
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
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
         $context = new ValidationContext($schema, $document, $typeInfo);
26 26
 
27
-        $visitors = array_map(function (RuleInterface $rule) use ($context) {
27
+        $visitors = array_map(function(RuleInterface $rule) use ($context) {
28 28
             return $rule->setContext($context);
29 29
         }, $rules ?? specifiedRules());
30 30
 
Please login to merge, or discard this patch.