Completed
Pull Request — master (#135)
by Quang
05:36 queued 02:34
created
src/Execution/ExecutionStrategy.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
         if ($isContainsPromise) {
252 252
             $keys    = array_keys($finalResults);
253 253
             $promise = \React\Promise\all(array_values($finalResults));
254
-            $promise->then(function ($values) use ($keys, &$finalResults) {
254
+            $promise->then(function($values) use ($keys, &$finalResults) {
255 255
                 foreach ($values as $i => $value) {
256 256
                     $finalResults[$keys[$i]] = $value;
257 257
                 }
@@ -475,7 +475,7 @@  discard block
 block discarded – undo
475 475
             if ($this->isPromise($completed)) {
476 476
                 $context = $this->context;
477 477
                 /** @var ExtendedPromiseInterface $completed */
478
-                return $completed->then(null, function ($error) use ($context) {
478
+                return $completed->then(null, function($error) use ($context) {
479 479
                     $context->addError($error);
480 480
                     return new \React\Promise\FulfilledPromise(null);
481 481
                 });
@@ -541,7 +541,7 @@  discard block
 block discarded – undo
541 541
     ) {
542 542
         if ($this->isPromise($result)) {
543 543
             /** @var ExtendedPromiseInterface $result */
544
-            return $result->then(function (&$value) use ($returnType, $fieldNodes, $info, $path) {
544
+            return $result->then(function(&$value) use ($returnType, $fieldNodes, $info, $path) {
545 545
                 return $this->completeValue($returnType, $fieldNodes, $info, $path, $value);
546 546
             });
547 547
         }
@@ -629,7 +629,7 @@  discard block
 block discarded – undo
629 629
 
630 630
         if ($this->isPromise($runtimeType)) {
631 631
             /** @var ExtendedPromiseInterface $runtimeType */
632
-            return $runtimeType->then(function ($resolvedRuntimeType) use (
632
+            return $runtimeType->then(function($resolvedRuntimeType) use (
633 633
                 $returnType,
634 634
                 $fieldNodes,
635 635
                 $info,
@@ -737,7 +737,7 @@  discard block
 block discarded – undo
737 737
                     $promisedIsTypeOfResults[$index] = $isTypeOfResult;
738 738
                 } elseif ($isTypeOfResult) {
739 739
                     return $type;
740
-                } elseif(is_array($value) && $value['type'] === $type->getName()) { //@TODO Make `type` configurable
740
+                } elseif (is_array($value) && $value['type'] === $type->getName()) { //@TODO Make `type` configurable
741 741
                     return $type;
742 742
                 }
743 743
             }
@@ -745,7 +745,7 @@  discard block
 block discarded – undo
745 745
 
746 746
         if (!empty($promisedIsTypeOfResults)) {
747 747
             return \React\Promise\all($promisedIsTypeOfResults)
748
-                ->then(function ($isTypeOfResults) use ($possibleTypes) {
748
+                ->then(function($isTypeOfResults) use ($possibleTypes) {
749 749
                     foreach ($isTypeOfResults as $index => $result) {
750 750
                         if ($result) {
751 751
                             return $possibleTypes[$index];
Please login to merge, or discard this patch.