@@ -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 | } |
@@ -474,7 +474,7 @@ discard block |
||
| 474 | 474 | |
| 475 | 475 | if ($this->isPromise($completed)) { |
| 476 | 476 | $context = $this->context; |
| 477 | - return $completed->then(null, function ($error) use ($context) { |
|
| 477 | + return $completed->then(null, function($error) use ($context) { |
|
| 478 | 478 | $context->addError($error); |
| 479 | 479 | return new \React\Promise\FulfilledPromise(null); |
| 480 | 480 | }); |
@@ -540,7 +540,7 @@ discard block |
||
| 540 | 540 | ) { |
| 541 | 541 | if ($this->isPromise($result)) { |
| 542 | 542 | /** @var ExtendedPromiseInterface $result */ |
| 543 | - return $result->then(function (&$value) use ($returnType, $fieldNodes, $info, $path) { |
|
| 543 | + return $result->then(function(&$value) use ($returnType, $fieldNodes, $info, $path) { |
|
| 544 | 544 | return $this->completeValue($returnType, $fieldNodes, $info, $path, $value); |
| 545 | 545 | }); |
| 546 | 546 | } |
@@ -628,7 +628,7 @@ discard block |
||
| 628 | 628 | |
| 629 | 629 | if ($this->isPromise($runtimeType)) { |
| 630 | 630 | /** @var PromiseInterface $runtimeType */ |
| 631 | - return $runtimeType->then(function ($resolvedRuntimeType) use ( |
|
| 631 | + return $runtimeType->then(function($resolvedRuntimeType) use ( |
|
| 632 | 632 | $returnType, |
| 633 | 633 | $fieldNodes, |
| 634 | 634 | $info, |
@@ -743,7 +743,7 @@ discard block |
||
| 743 | 743 | |
| 744 | 744 | if (!empty($promisedIsTypeOfResults)) { |
| 745 | 745 | return \React\Promise\all($promisedIsTypeOfResults) |
| 746 | - ->then(function ($isTypeOfResults) use ($possibleTypes) { |
|
| 746 | + ->then(function($isTypeOfResults) use ($possibleTypes) { |
|
| 747 | 747 | foreach ($isTypeOfResults as $index => $result) { |
| 748 | 748 | if ($result) { |
| 749 | 749 | return $possibleTypes[$index]; |