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