| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 2.2559 |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | 67 | public function send(RequestInterface $request, array $options = []): ResponseInterface |
|
| 40 | { |
||
| 41 | try { |
||
| 42 | 67 | return $this->client->send($request, [ |
|
| 43 | 67 | 'query' => Uri::withQueryValues($request->getUri(), $this->client->getConfig('query') ?? [])->getQuery() |
|
| 44 | ]); |
||
| 45 | } |
||
| 46 | catch (ClientException $e) { |
||
| 47 | throw WrongData::invalidValuesProvided($e->getMessage()); |
||
| 48 | } |
||
| 49 | } |
||
| 50 | } |
||
| 51 |