| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class Client extends GuzzleClient |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Sends a response to the B2 API, automatically handling decoding JSON and errors. |
||
| 18 | * |
||
| 19 | * @param string $method |
||
| 20 | * @param null $uri |
||
|
|
|||
| 21 | * @param array $options |
||
| 22 | * @param bool $asJson |
||
| 23 | * |
||
| 24 | * @throws GuzzleException If the request fails. |
||
| 25 | * @throws B2Exception If the B2 server replies with an error. |
||
| 26 | * |
||
| 27 | * @return mixed|ResponseInterface|string |
||
| 28 | */ |
||
| 29 | 27 | public function guzzleRequest($method, $uri = null, array $options = [], $asJson = true) |
|
| 44 |