@@ -25,7 +25,7 @@ |
||
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 | } |
@@ -24,7 +24,7 @@ |
||
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 |
@@ -105,7 +105,7 @@ |
||
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 |
@@ -24,7 +24,7 @@ |
||
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 |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | $parentType->getName(), |
36 | 36 | suggestionList( |
37 | 37 | $node->getNameValue(), |
38 | - array_map(function (Argument $argument) { |
|
38 | + array_map(function(Argument $argument) { |
|
39 | 39 | return $argument->getName(); |
40 | 40 | }, $fieldDefinition->getArguments()) |
41 | 41 | ) |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | $directive->getName(), |
56 | 56 | suggestionList( |
57 | 57 | $node->getNameValue(), |
58 | - array_map(function (Argument $argument) { |
|
58 | + array_map(function(Argument $argument) { |
|
59 | 59 | return $argument->getName(); |
60 | 60 | }, $directive->getArguments()) |
61 | 61 | ) |
@@ -17,14 +17,14 @@ |
||
17 | 17 | public function enterNode(NodeInterface $node): ?NodeInterface |
18 | 18 | { |
19 | 19 | if ($node instanceof InlineFragmentNode) { |
20 | - $this->validateFragementNode($node, function (NodeInterface $node) { |
|
20 | + $this->validateFragementNode($node, function(NodeInterface $node) { |
|
21 | 21 | /** @noinspection PhpUndefinedMethodInspection */ |
22 | 22 | return inlineFragmentOnNonCompositeMessage($node->getTypeCondition()->getNameValue()); |
23 | 23 | }); |
24 | 24 | } |
25 | 25 | |
26 | 26 | if ($node instanceof FragmentDefinitionNode) { |
27 | - $this->validateFragementNode($node, function (NodeInterface $node) { |
|
27 | + $this->validateFragementNode($node, function(NodeInterface $node) { |
|
28 | 28 | /** @noinspection PhpUndefinedMethodInspection */ |
29 | 29 | return fragmentOnNonCompositeMessage($node->getNameValue(), $node->getTypeCondition()->getNameValue()); |
30 | 30 | }); |