Passed
Pull Request — master (#307)
by Christoffer
04:24
created
src/Execution/ValuesHelper.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             return $coercedValues;
57 57
         }
58 58
 
59
-        $argumentNodeMap = keyMap($argumentNodes, function (ArgumentNode $value) {
59
+        $argumentNodeMap = keyMap($argumentNodes, function(ArgumentNode $value) {
60 60
             return $value->getNameValue();
61 61
         });
62 62
 
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         array $variableValues = []
134 134
     ): ?array {
135 135
         $directiveNode = $node->hasDirectives()
136
-            ? find($node->getDirectives(), function (NameAwareInterface $value) use ($directive) {
136
+            ? find($node->getDirectives(), function(NameAwareInterface $value) use ($directive) {
137 137
                 return $value->getNameValue() === $directive->getName();
138 138
             }) : null;
139 139
 
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
                 ]);
334 334
             }
335 335
             return new CoercedValue($parseResult);
336
-        } catch (InvalidTypeException|CoercingException $ex) {
336
+        } catch (InvalidTypeException | CoercingException $ex) {
337 337
             return new CoercedValue(null, [
338 338
                 $this->buildCoerceException(
339 339
                     sprintf('Expected type %s', (string)$type),
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
             return new CoercedValue($enumValue);
365 365
         }
366 366
 
367
-        $suggestions = suggestionList((string)$value, \array_map(function (EnumValue $enumValue) {
367
+        $suggestions = suggestionList((string)$value, \array_map(function(EnumValue $enumValue) {
368 368
             return $enumValue->getName();
369 369
         }, $type->getValues()));
370 370
 
Please login to merge, or discard this patch.