Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | private function sendRequest(string $url, string $method = 'GET', array $options = []): ?array |
||
34 | { |
||
35 | $response = $this->client->request($method, $url, array_merge( |
||
36 | [ |
||
37 | 'headers' => ['Accept' => 'application/json'], |
||
38 | 'auth' => [$this->username, $this->password], |
||
39 | ], |
||
40 | $options |
||
41 | )); |
||
42 | |||
43 | return json_decode($response->getBody()->getContents(), true); |
||
44 | } |
||
56 |