@@ -127,7 +127,7 @@ |
||
| 127 | 127 | |
| 128 | 128 | /** |
| 129 | 129 | * @param $rowArray |
| 130 | - * @param $key |
|
| 130 | + * @param string $key |
|
| 131 | 131 | * @return array |
| 132 | 132 | */ |
| 133 | 133 | private static function parseArrayInfoOutput($rowArray, $key) |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | $rowArray = explode(PHP_EOL, str_replace('\r\n', PHP_EOL, $output)); |
| 40 | 40 | $installedLogs = array_filter( |
| 41 | 41 | array_map( |
| 42 | - function ($line) { |
|
| 42 | + function($line) { |
|
| 43 | 43 | $matches = array(); |
| 44 | 44 | preg_match('/^ - Installing (.*?) \((.*?)\) .*/', $line, $matches); |
| 45 | 45 | |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | public static function parseInfo($output) |
| 63 | 63 | { |
| 64 | 64 | $rowArray = explode(PHP_EOL, str_replace('\r\n', PHP_EOL, $output)); |
| 65 | - $infoLogs = array_filter(array_map(function ($line) { |
|
| 65 | + $infoLogs = array_filter(array_map(function($line) { |
|
| 66 | 66 | $matches = array(); |
| 67 | 67 | preg_match('/^(name|descrip.|keywords|versions|type|license|source|dist|names)\s*:\s*(.*)$/', $line, $matches); |
| 68 | 68 | |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | public static function parseConfig($output) |
| 87 | 87 | { |
| 88 | 88 | $rowArray = explode(PHP_EOL, str_replace('\r\n', PHP_EOL, $output)); |
| 89 | - $rowArray = array_filter($rowArray, function ($line) { |
|
| 89 | + $rowArray = array_filter($rowArray, function($line) { |
|
| 90 | 90 | return !preg_match('/^<warning>.*/', $line); |
| 91 | 91 | }); |
| 92 | 92 | |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | public static function parseList($output) |
| 103 | 103 | { |
| 104 | 104 | $rowArray = explode(PHP_EOL, str_replace('\r\n', PHP_EOL, $output)); |
| 105 | - $rawConfig = array_map(function ($line) { |
|
| 105 | + $rawConfig = array_map(function($line) { |
|
| 106 | 106 | $matches = array(); |
| 107 | 107 | preg_match('/^\[(.*?)\]\s?(.*)$/', $line, $matches); |
| 108 | 108 | |