@@ -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 | $wordPressInstallations[$domain] = [ |
| 39 | 43 | 'domain' => $domain, |
@@ -90,7 +94,9 @@ discard block |
||
| 90 | 94 | ]; |
| 91 | 95 | |
| 92 | 96 | $fp = fopen($file, 'r'); |
| 93 | - if (!$fp) return []; |
|
| 97 | + if (!$fp) { |
|
| 98 | + return []; |
|
| 99 | + } |
|
| 94 | 100 | |
| 95 | 101 | $data = fread($fp, 8192); |
| 96 | 102 | fclose($fp); |