Passed
Pull Request — master (#119)
by Quang
02:16
created
src/Validation/Rule/NoFragmentCyclesRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
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])
Please login to merge, or discard this patch.
src/Validation/Validator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Execution/ValuesResolver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
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.