Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
32 | protected function makeRequest(Request $request): array |
||
33 | { |
||
34 | try { |
||
35 | $response = $this->client->send($request); |
||
36 | } catch (RequestException $exception) { |
||
37 | throw Factory::createFromResponse($exception->getResponse()); |
||
38 | } |
||
39 | |||
40 | return json_decode($response->getBody()->getContents(), true); |
||
41 | } |
||
43 |