Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1.0028 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
33 | 1 | public function stream(RequestInterface $request, array $options = []): CancellablePromiseInterface |
|
34 | { |
||
35 | 1 | return $this->client->request( |
|
36 | $request, |
||
37 | 1 | $options |
|
38 | 1 | )->then(function (ResponseInterface $response) { |
|
39 | 1 | return resolve(new StreamingResponse($response)); |
|
40 | 1 | }); |
|
41 | } |
||
42 | } |
||
43 |