@@ -50,11 +50,11 @@ discard block |
||
| 50 | 50 | $argv = $this->getGlobalArgV(); |
| 51 | 51 | |
| 52 | 52 | // Grab arguments from `$argv` using native `getopt` |
| 53 | - $int_filter = function ($k): bool { |
|
| 53 | + $int_filter = function($k): bool { |
|
| 54 | 54 | return is_int($k); |
| 55 | 55 | }; |
| 56 | 56 | $just_longs = array_filter($options_map, $int_filter, ARRAY_FILTER_USE_KEY); |
| 57 | - $string_filter = function ($k): bool { |
|
| 57 | + $string_filter = function($k): bool { |
|
| 58 | 58 | return is_string($k); |
| 59 | 59 | }; |
| 60 | 60 | $options_map = array_filter($options_map, $string_filter, ARRAY_FILTER_USE_KEY); |
@@ -116,13 +116,13 @@ discard block |
||
| 116 | 116 | protected function input(): void |
| 117 | 117 | { |
| 118 | 118 | $this->out("Running Command: [ {$this->command} ] from [ {$this->self} ]"); |
| 119 | - $flags = join(', ', array_keys(array_filter($this->args, function ($val): bool { |
|
| 119 | + $flags = join(', ', array_keys(array_filter($this->args, function($val): bool { |
|
| 120 | 120 | return $val === true; |
| 121 | 121 | }))); |
| 122 | 122 | if (empty($flags) == false) { |
| 123 | 123 | $this->out("Flags: [ {$flags} ]"); |
| 124 | 124 | } |
| 125 | - $options = urldecode(http_build_query(array_filter($this->args, function ($val): bool { |
|
| 125 | + $options = urldecode(http_build_query(array_filter($this->args, function($val): bool { |
|
| 126 | 126 | return is_bool($val) === false; |
| 127 | 127 | }), '', ", ")); |
| 128 | 128 | if (empty($options) == false) { |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | */ |
| 234 | 234 | protected function progressBar(int $counter, int $total): void |
| 235 | 235 | { |
| 236 | - $length = (int) (($counter/$total) * 100); |
|
| 236 | + $length = (int) (($counter / $total) * 100); |
|
| 237 | 237 | $active = ($counter === $total) ? '' : '>'; |
| 238 | 238 | $loadbar = sprintf( |
| 239 | 239 | "\r[%-100s] %d%% (%s/%s)", |