Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | public function all(): Response |
||
11 | { |
||
12 | $response = $this->client |
||
13 | ->getHttpClient() |
||
14 | ->get($this->client->getBaseUrl() . '/directory'); |
||
15 | |||
16 | if ($response->getHttpResponseCode() >= 400) { |
||
17 | $this->logResponse('error', 'Cannot get directory', $response); |
||
18 | |||
19 | throw new LetsEncryptClientException('Cannot get directory'); |
||
20 | } |
||
21 | |||
22 | return $response; |
||
23 | } |
||
52 |