@@ -22,7 +22,9 @@ discard block |
||
22 | 22 | { |
23 | 23 | $runner = new Runner(); |
24 | 24 | |
25 | - if (!$runner->commandExists('docker')) return []; |
|
25 | + if (!$runner->commandExists('docker')) { |
|
26 | + return []; |
|
27 | + } |
|
26 | 28 | |
27 | 29 | $cmd = "docker ps --format '{{.ID}}|{{.Image}}|{{.Names}}|{{.Ports}}'"; |
28 | 30 | $output = Runner::getInstance()->run($cmd)->getOutput(); |
@@ -31,7 +33,9 @@ discard block |
||
31 | 33 | $containers = []; |
32 | 34 | |
33 | 35 | foreach ($lines as $line) { |
34 | - if (empty($line)) continue; |
|
36 | + if (empty($line)) { |
|
37 | + continue; |
|
38 | + } |
|
35 | 39 | |
36 | 40 | [$id, $image, $name, $ports] = explode('|', $line); |
37 | 41 | $containers[] = [ |
@@ -23,7 +23,9 @@ |
||
23 | 23 | { |
24 | 24 | if (!array_key_exists(ApacheServerNameCollector::COLLECTION_IDENTIFIER, $this->inventory) |
25 | 25 | || !is_array($this->inventory[ApacheServerNameCollector::COLLECTION_IDENTIFIER]) |
26 | - ) return []; |
|
26 | + ) { |
|
27 | + return []; |
|
28 | + } |
|
27 | 29 | |
28 | 30 | $configs = $this->inventory[ApacheServerNameCollector::COLLECTION_IDENTIFIER]; |
29 | 31 |
@@ -37,7 +37,9 @@ |
||
37 | 37 | foreach ($output as $line) { |
38 | 38 | if (preg_match_all('/--with-(\S+)/', $line, $matches)) { |
39 | 39 | foreach ($matches[1] as $module) { |
40 | - if (str_contains($module, '=')) continue; |
|
40 | + if (str_contains($module, '=')) { |
|
41 | + continue; |
|
42 | + } |
|
41 | 43 | $modules[] = $module; |
42 | 44 | } |
43 | 45 | } |