@@ -46,11 +46,11 @@ discard block |
||
| 46 | 46 | $argv = $this->getGlobalArgV(); |
| 47 | 47 | |
| 48 | 48 | // Grab arguments from `$argv` using native `getopt` |
| 49 | - $int_filter = function ($k): bool { |
|
| 49 | + $int_filter = function($k): bool { |
|
| 50 | 50 | return is_int($k); |
| 51 | 51 | }; |
| 52 | 52 | $just_longs = array_filter($options_map, $int_filter, ARRAY_FILTER_USE_KEY); |
| 53 | - $string_filter = function ($k): bool { |
|
| 53 | + $string_filter = function($k): bool { |
|
| 54 | 54 | return is_string($k); |
| 55 | 55 | }; |
| 56 | 56 | $options_map = array_filter($options_map, $string_filter, ARRAY_FILTER_USE_KEY); |
@@ -112,13 +112,13 @@ discard block |
||
| 112 | 112 | protected function input(): void |
| 113 | 113 | { |
| 114 | 114 | $this->out("Running Command: [ {$this->command} ] from [ {$this->self} ]"); |
| 115 | - $flags = join(', ', array_keys(array_filter($this->args, function ($val): bool { |
|
| 115 | + $flags = join(', ', array_keys(array_filter($this->args, function($val): bool { |
|
| 116 | 116 | return $val === true; |
| 117 | 117 | }))); |
| 118 | 118 | if (empty($flags) === false) { |
| 119 | 119 | $this->out("Flags: [ {$flags} ]"); |
| 120 | 120 | } |
| 121 | - $options = urldecode(http_build_query(array_filter($this->args, function ($val): bool { |
|
| 121 | + $options = urldecode(http_build_query(array_filter($this->args, function($val): bool { |
|
| 122 | 122 | return is_bool($val) === false; |
| 123 | 123 | }), '', ", ")); |
| 124 | 124 | 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)", |