Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
48 | public function performRequest(string $resource, array $headers = [], array $query = []) : Collection |
||
49 | { |
||
50 | return collect(json_decode($this->client->request('GET', "{$this->baseUrl}{$resource}", [ |
||
51 | 'headers' => $this->buildHeaders($headers), |
||
52 | 'query' => $query |
||
53 | ])->getBody()->getContents(), true)); |
||
54 | } |
||
55 | |||
71 |