Completed
Pull Request — master (#119)
by Quang
02:43
created
src/Type/Definition/ResolveTypeTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Execution/ExecutionStrategy.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -640,7 +640,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.