| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function always(callable $onFulfilledOrRejected, callable $onNotify = null) |
||
| 33 | { |
||
| 34 | return $this->then(function ($value) use ($onFulfilledOrRejected) { |
||
| 35 | $onFulfilledOrRejected($value); |
||
| 36 | |||
| 37 | return $value; |
||
| 38 | }, function ($reason) use ($onFulfilledOrRejected) { |
||
| 39 | $onFulfilledOrRejected($reason); |
||
| 40 | }, $onNotify); |
||
| 41 | } |
||
| 42 | } |
||
| 43 |