@@ -44,7 +44,9 @@ |
||
44 | 44 | $packages = []; |
45 | 45 | |
46 | 46 | foreach ($lines as $line) { |
47 | - if (trim($line) === '') continue; |
|
47 | + if (trim($line) === '') { |
|
48 | + continue; |
|
49 | + } |
|
48 | 50 | |
49 | 51 | if (preg_match('/^([^\s\/]+)\/[^\s]+\s+([^\s]+).*upgradable from: ([^\]]+)/', $line, $matches)) { |
50 | 52 | $packages[$matches[1]] = [ |
@@ -23,14 +23,18 @@ |
||
23 | 23 | */ |
24 | 24 | public function collect(): array |
25 | 25 | { |
26 | - if (!file_exists(self::INI_FILE)) return []; |
|
26 | + if (!file_exists(self::INI_FILE)) { |
|
27 | + return []; |
|
28 | + } |
|
27 | 29 | |
28 | 30 | $config = file(self::INI_FILE); |
29 | 31 | |
30 | 32 | $configArray = []; |
31 | 33 | |
32 | 34 | foreach ($config as $line) { |
33 | - if (str_starts_with($line, '[')) continue; |
|
35 | + if (str_starts_with($line, '[')) { |
|
36 | + continue; |
|
37 | + } |
|
34 | 38 | $element = explode('=', $line); |
35 | 39 | $configArray[$element[0]] = trim($element[1]); |
36 | 40 | } |