@@ -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 | }); |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | /** @var ArgumentNode[] $argumentNodeMap */ |
| 65 | - $argumentNodeMap = keyMap($argumentNodes, function (ArgumentNode $value) { |
|
| 65 | + $argumentNodeMap = keyMap($argumentNodes, function(ArgumentNode $value) { |
|
| 66 | 66 | return $value->getNameValue(); |
| 67 | 67 | }); |
| 68 | 68 | |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | array $variableValues = [] |
| 185 | 185 | ): ?array { |
| 186 | 186 | $directiveNode = $node->hasDirectives() |
| 187 | - ? find($node->getDirectives(), function (NameAwareInterface $value) use ($directive) { |
|
| 187 | + ? find($node->getDirectives(), function(NameAwareInterface $value) use ($directive) { |
|
| 188 | 188 | return $value->getNameValue() === $directive->getName(); |
| 189 | 189 | }) : null; |
| 190 | 190 | |
@@ -401,7 +401,7 @@ discard block |
||
| 401 | 401 | ]); |
| 402 | 402 | } |
| 403 | 403 | return new CoercedValue($parseResult); |
| 404 | - } /** @noinspection PhpRedundantCatchClauseInspection */ catch (InvalidTypeException|CoercingException $ex) { |
|
| 404 | + } /** @noinspection PhpRedundantCatchClauseInspection */ catch (InvalidTypeException | CoercingException $ex) { |
|
| 405 | 405 | return new CoercedValue(null, [ |
| 406 | 406 | static::buildCoerceException( |
| 407 | 407 | \sprintf('Expected type %s', (string)$type), |
@@ -432,7 +432,7 @@ discard block |
||
| 432 | 432 | return new CoercedValue($enumValue); |
| 433 | 433 | } |
| 434 | 434 | |
| 435 | - $suggestions = suggestionList((string)$value, \array_map(function (EnumValue $enumValue) { |
|
| 435 | + $suggestions = suggestionList((string)$value, \array_map(function(EnumValue $enumValue) { |
|
| 436 | 436 | return $enumValue->getName(); |
| 437 | 437 | }, $type->getValues())); |
| 438 | 438 | |