Passed
Push — master ( 4c4973...3cd5ab )
by Nils
03:48 queued 58s
created
src/Util/WebsiteUtil.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,9 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Collector/Website/HeaderCollector.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,9 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.