| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | 1 | public function request(RequestInterface $request, callable $handler) : PromiseInterface |
|
| 22 | { |
||
| 23 | 1 | $response = $this->_getResponse($request); |
|
| 24 | 1 | if ($response !== null) |
|
| 25 | { |
||
| 26 | 1 | return new FulfilledPromise($response); |
|
| 27 | } |
||
| 28 | |||
| 29 | 1 | return parent::request($request, $handler); |
|
| 30 | } |
||
| 31 | } |