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