@@ -21,7 +21,9 @@ discard block |
||
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 |
||
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 |