Passed
Push — master ( c79340...305a55 )
by Alexander
02:35 queued 11s
created
src/util/Cli.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,11 +50,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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)",
Please login to merge, or discard this patch.