@@ -251,7 +251,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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, |
@@ -744,7 +744,7 @@ discard block |
||
744 | 744 | |
745 | 745 | if (!empty($promisedIsTypeOfResults)) { |
746 | 746 | return \React\Promise\all($promisedIsTypeOfResults) |
747 | - ->then(function ($isTypeOfResults) use ($possibleTypes) { |
|
747 | + ->then(function($isTypeOfResults) use ($possibleTypes) { |
|
748 | 748 | foreach ($isTypeOfResults as $index => $result) { |
749 | 749 | if ($result) { |
750 | 750 | return $possibleTypes[$index]; |