| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 63 | 104 | public function sendAsyncRequest(RequestInterface $request) |
|
| 64 | { |
||
| 65 | 104 | $promise = new Promise( |
|
| 66 | 104 | $this->client->request( |
|
| 67 | 104 | $request->getMethod(), |
|
| 68 | 104 | $request->getUri(), |
|
| 69 | 104 | $request->getHeaders(), |
|
| 70 | 104 | $request->getBody() |
|
| 71 | ), |
||
| 72 | 104 | $this->loop, |
|
| 73 | 104 | $request |
|
| 74 | ); |
||
| 75 | |||
| 76 | 104 | return $promise; |
|
| 77 | } |
||
| 78 | } |
||
| 79 |