| Conditions | 2 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 52 | protected function requestGet(string $url): array |
||
| 53 | { |
||
| 54 | try { |
||
| 55 | $result = $this->client->request('GET', $url); |
||
| 56 | $jsonResponse = $this->getJsonResponse($result); |
||
| 57 | |||
| 58 | return $jsonResponse; |
||
| 59 | } catch(\GuzzleHttp\Exception\ClientException $e) { |
||
| 60 | return [ |
||
| 61 | 'code' => $e->getCode(), |
||
| 62 | 'message' => $e->getMessage() |
||
| 63 | ]; |
||
| 93 | } |