Passed
Push — master ( dc86bc...a4710b )
by Nils
02:19
created
src/Collector/Website/WordPress/WordPressCollector.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,9 @@  discard block
 block discarded – undo
21 21
     {
22 22
         if (!array_key_exists(ApacheServerNameCollector::COLLECTION_IDENTIFIER, $this->inventory)
23 23
             || !is_array($this->inventory[ApacheServerNameCollector::COLLECTION_IDENTIFIER])
24
-        ) return [];
24
+        ) {
25
+            return [];
26
+        }
25 27
 
26 28
         $configs = $this->inventory[ApacheServerNameCollector::COLLECTION_IDENTIFIER];
27 29
 
@@ -33,7 +35,9 @@  discard block
 block discarded – undo
33 35
 
34 36
             if (file_exists($documentRoot . '/wp-config.php')) {
35 37
 
36
-                if (!str_ends_with($documentRoot, '/')) $documentRoot = $documentRoot . '/';
38
+                if (!str_ends_with($documentRoot, '/')) {
39
+                    $documentRoot = $documentRoot . '/';
40
+                }
37 41
 
38 42
                 $wpVersionFile = $documentRoot . 'wp-includes/version.php';
39 43
 
Please login to merge, or discard this patch.