| Conditions | 2 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 67 | private function requestAPI($method, $url, array $options = []) |
||
| 68 | { |
||
| 69 | try { |
||
| 70 | $response = $this->httpClient->request((string)$method, $url, $options); |
||
| 71 | |||
| 72 | return json_decode($response->getBody(), true); |
||
| 73 | } catch (ClientException $e) { |
||
| 74 | throw new BunqException($e); |
||
| 75 | } |
||
| 76 | } |
||
| 77 | } |
||
| 78 |