@@ -101,7 +101,7 @@ |
||
101 | 101 | |
102 | 102 | $this->context->reportError( |
103 | 103 | new ValidationException( |
104 | - fragmentCycleMessage($spreadName, \array_map(function (FragmentSpreadNode $spread) { |
|
104 | + fragmentCycleMessage($spreadName, \array_map(function(FragmentSpreadNode $spread) { |
|
105 | 105 | return $spread->getNameValue(); |
106 | 106 | }, $cyclePath)), |
107 | 107 | \array_merge($cyclePath, [$spreadNode]) |
@@ -47,7 +47,7 @@ |
||
47 | 47 | |
48 | 48 | $context = $this->contextBuilder->build($schema, $document, $typeInfo); |
49 | 49 | |
50 | - $visitors = array_map(function (RuleInterface $rule) use ($context) { |
|
50 | + $visitors = array_map(function(RuleInterface $rule) use ($context) { |
|
51 | 51 | return $rule->setContext($context); |
52 | 52 | }, $rules); |
53 | 53 |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | return $coercedValues; |
47 | 47 | } |
48 | 48 | |
49 | - $argumentNodeMap = keyMap($argumentNodes, function (ArgumentNode $value) { |
|
49 | + $argumentNodeMap = keyMap($argumentNodes, function(ArgumentNode $value) { |
|
50 | 50 | return $value->getNameValue(); |
51 | 51 | }); |
52 | 52 | |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | $variableValues = [] |
178 | 178 | ): ?array { |
179 | 179 | $directiveNode = $node->hasDirectives() |
180 | - ? find($node->getDirectives(), function ($value) use ($directive) { |
|
180 | + ? find($node->getDirectives(), function($value) use ($directive) { |
|
181 | 181 | return $value->getNameValue() === $directive->getName(); |
182 | 182 | }) : null; |
183 | 183 |
@@ -16,7 +16,7 @@ |
||
16 | 16 | */ |
17 | 17 | public function resolveType(...$args): ?TypeInterface |
18 | 18 | { |
19 | - if(!empty($this->resolveTypeFunction)) { |
|
19 | + if (!empty($this->resolveTypeFunction)) { |
|
20 | 20 | return \call_user_func_array($this->resolveTypeFunction, $args); |
21 | 21 | } |
22 | 22 |
@@ -640,7 +640,7 @@ discard block |
||
640 | 640 | throw new ExecutionException( |
641 | 641 | "Abstract type {$returnType->getName()} must resolve to an Object type at runtime " . |
642 | 642 | "for field {$info->getParentType()}.{$info->getFieldName()} with " . |
643 | - 'value "' . toString($result) . '", received "'. toString($runtimeType) . '".' |
|
643 | + 'value "' . toString($result) . '", received "' . toString($runtimeType) . '".' |
|
644 | 644 | ); |
645 | 645 | } |
646 | 646 | |
@@ -652,8 +652,8 @@ discard block |
||
652 | 652 | |
653 | 653 | if ($runtimeType !== $this->context->getSchema()->getType($runtimeType->getName())) { |
654 | 654 | throw new ExecutionException( |
655 | - "Schema must contain unique named types but contains multiple types named \"{$runtimeType->getName()}\". ". |
|
656 | - "Make sure that `resolveType` function of abstract type \"{$returnType->getName()}\" returns the same ". |
|
655 | + "Schema must contain unique named types but contains multiple types named \"{$runtimeType->getName()}\". " . |
|
656 | + "Make sure that `resolveType` function of abstract type \"{$returnType->getName()}\" returns the same " . |
|
657 | 657 | "type instance as referenced anywhere else within the schema" |
658 | 658 | ); |
659 | 659 | } |