@@ -10,7 +10,9 @@ |
||
10 | 10 | { |
11 | 11 | if (!array_key_exists(ApacheServerNameCollector::COLLECTION_IDENTIFIER, $inventory) |
12 | 12 | || !is_array($inventory[ApacheServerNameCollector::COLLECTION_IDENTIFIER]) |
13 | - ) return []; |
|
13 | + ) { |
|
14 | + return []; |
|
15 | + } |
|
14 | 16 | |
15 | 17 | $configs = $inventory[ApacheServerNameCollector::COLLECTION_IDENTIFIER]; |
16 | 18 |
@@ -36,7 +36,9 @@ |
||
36 | 36 | foreach ($domains as $domain) { |
37 | 37 | try { |
38 | 38 | $url = $domain; |
39 | - if (!str_starts_with($url, 'http')) $url = 'https://' . $url; |
|
39 | + if (!str_starts_with($url, 'http')) { |
|
40 | + $url = 'https://' . $url; |
|
41 | + } |
|
40 | 42 | $response = $this->client->get($url); |
41 | 43 | } catch (ClientException $e) { |
42 | 44 | $response = $e->getResponse(); |