@@ -66,11 +66,11 @@ |
||
| 66 | 66 | { |
| 67 | 67 | $value = $this->callResolveCallback($value); |
| 68 | 68 | if ($value instanceof PromiseInterface) { |
| 69 | - $value->done(function ($actual) { |
|
| 69 | + $value->done(function($actual) { |
|
| 70 | 70 | $this->deferred->resolve($actual); |
| 71 | - }, function ($reason) { |
|
| 71 | + }, function($reason) { |
|
| 72 | 72 | $this->deferred->reject($reason); |
| 73 | - }, function ($state) { |
|
| 73 | + }, function($state) { |
|
| 74 | 74 | $this->deferred->notify($state); |
| 75 | 75 | }); |
| 76 | 76 | } else { |
@@ -28,11 +28,11 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | public function __construct(ThenableInterface $thenable) |
| 30 | 30 | { |
| 31 | - $thenable->then(function ($value) { |
|
| 31 | + $thenable->then(function($value) { |
|
| 32 | 32 | $this->deferred()->resolve($value); |
| 33 | - }, function ($reason) { |
|
| 33 | + }, function($reason) { |
|
| 34 | 34 | $this->deferred()->reject($reason); |
| 35 | - }, function ($state) { |
|
| 35 | + }, function($state) { |
|
| 36 | 36 | $this->deferred()->notify($state); |
| 37 | 37 | }); |
| 38 | 38 | } |