| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 75 | public function sendRequest($method, $path, array $options = []) |
||
| 76 | { |
||
| 77 | try { |
||
| 78 | $response = $this->handler->send($this->handler->createRequest($method, $path, $options)); |
||
| 79 | } catch (ClientException $ex) { |
||
| 80 | $response = $ex->getResponse(); |
||
| 81 | } |
||
| 82 | |||
| 83 | return $response->json(); |
||
| 84 | } |
||
| 85 | } |
||
| 86 |