@@ -45,11 +45,11 @@ discard block |
||
45 | 45 | { |
46 | 46 | $argv = $this->getGlobalArgV(); |
47 | 47 | |
48 | - $int_filter = function ($k): bool { |
|
48 | + $int_filter = function($k): bool { |
|
49 | 49 | return is_int($k); |
50 | 50 | }; |
51 | 51 | $just_longs = array_filter($options_map, $int_filter, ARRAY_FILTER_USE_KEY); |
52 | - $string_filter = function ($k): bool { |
|
52 | + $string_filter = function($k): bool { |
|
53 | 53 | return is_string($k); |
54 | 54 | }; |
55 | 55 | $options_map = array_filter($options_map, $string_filter, ARRAY_FILTER_USE_KEY); |
@@ -111,13 +111,13 @@ discard block |
||
111 | 111 | protected function input(): void |
112 | 112 | { |
113 | 113 | $this->out("Running Command: [ {$this->command} ] from [ {$this->self} ]"); |
114 | - $flags = join(', ', array_keys(array_filter($this->args, function ($val): bool { |
|
114 | + $flags = join(', ', array_keys(array_filter($this->args, function($val): bool { |
|
115 | 115 | return $val === true; |
116 | 116 | }))); |
117 | 117 | if (empty($flags) === false) { |
118 | 118 | $this->out("Flags: [ {$flags} ]"); |
119 | 119 | } |
120 | - $options = urldecode(http_build_query(array_filter($this->args, function ($val): bool { |
|
120 | + $options = urldecode(http_build_query(array_filter($this->args, function($val): bool { |
|
121 | 121 | return is_bool($val) === false; |
122 | 122 | }), '', ", ")); |
123 | 123 | if (empty($options) === false) { |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | */ |
230 | 230 | protected function progressBar(int $counter, int $total): void |
231 | 231 | { |
232 | - $length = (int) (($counter/$total) * 100); |
|
232 | + $length = (int) (($counter / $total) * 100); |
|
233 | 233 | $active = ($counter === $total) ? '' : '>'; |
234 | 234 | $loadbar = sprintf( |
235 | 235 | "\r[%-100s] %d%% (%s/%s)", |