@@ -72,7 +72,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | |
@@ -53,7 +53,7 @@ discard block |
||
| 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 |
||
| 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 | }); |