Completed
Pull Request — master (#349)
by Christoffer
03:02
created
src/Execution/ValuesResolver.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         }
73 73
 
74 74
         /** @var ArgumentNode[] $argumentNodeMap */
75
-        $argumentNodeMap = keyMap($argumentNodes, function (ArgumentNode $value) {
75
+        $argumentNodeMap = keyMap($argumentNodes, function(ArgumentNode $value) {
76 76
             return $value->getNameValue();
77 77
         });
78 78
 
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
         array $variableValues = []
195 195
     ): ?array {
196 196
         $directiveNode = $node->hasDirectives()
197
-            ? find($node->getDirectives(), function (NameAwareInterface $value) use ($directive) {
197
+            ? find($node->getDirectives(), function(NameAwareInterface $value) use ($directive) {
198 198
                 return $value->getNameValue() === $directive->getName();
199 199
             }) : null;
200 200
 
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
                 ]);
412 412
             }
413 413
             return new CoercedValue($parseResult);
414
-        } /** @noinspection PhpRedundantCatchClauseInspection */ catch (InvalidTypeException|CoercingException $ex) {
414
+        } /** @noinspection PhpRedundantCatchClauseInspection */ catch (InvalidTypeException | CoercingException $ex) {
415 415
             return new CoercedValue(null, [
416 416
                 static::buildCoerceException(
417 417
                     sprintf('Expected type %s', (string)$type),
@@ -442,7 +442,7 @@  discard block
 block discarded – undo
442 442
             return new CoercedValue($enumValue);
443 443
         }
444 444
 
445
-        $suggestions = suggestionList((string)$value, array_map(function (EnumValue $enumValue) {
445
+        $suggestions = suggestionList((string)$value, array_map(function(EnumValue $enumValue) {
446 446
             return $enumValue->getName();
447 447
         }, $type->getValues()));
448 448
 
Please login to merge, or discard this patch.
src/Execution/Execution.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         $data = $this->executeOperation($operationName, $context, $fieldCollector);
54 54
 
55 55
         if ($data instanceof PromiseInterface) {
56
-            return $data->then(function ($resolvedData) use ($context) {
56
+            return $data->then(function($resolvedData) use ($context) {
57 57
                 return new ExecutionResult($resolvedData, $context->getErrors());
58 58
             });
59 59
         }
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         }
96 96
 
97 97
         if ($result instanceof PromiseInterface) {
98
-            return $result->then(null, function (ExecutionException $exception) use ($context) {
98
+            return $result->then(null, function(ExecutionException $exception) use ($context) {
99 99
                 $context->addError($exception);
100 100
                 return resolve(null);
101 101
             });
Please login to merge, or discard this patch.