Passed
Push — develop ( 73bc77...71bbc5 )
by nguereza
14:43 queued 18s
created
src/Command/Shell.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -360,9 +360,9 @@
 block discarded – undo
360 360
                : ['pipe', 'w'];
361 361
 
362 362
         return [
363
-         self::STDIN_DESCRIPTOR  => ['pipe', 'r'],
364
-         self::STDOUT_DESCRIPTOR => $out,
365
-         self::STDERR_DESCRIPTOR => $out,
363
+            self::STDIN_DESCRIPTOR  => ['pipe', 'r'],
364
+            self::STDOUT_DESCRIPTOR => $out,
365
+            self::STDERR_DESCRIPTOR => $out,
366 366
         ];
367 367
     }
368 368
 
Please login to merge, or discard this patch.
src/Application.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
         };
130 130
 
131 131
         $this->command('__default__', 'Default command', '', true, true)
132
-              ->on([$this, 'showHelp'], 'help');
132
+                ->on([$this, 'showHelp'], 'help');
133 133
     }
134 134
 
135 135
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
         $this->name = $name;
124 124
         $this->version = $version;
125 125
 
126
-        $this->onExit = $onExit ?? function (int $exitCode = 0) {
126
+        $this->onExit = $onExit ?? function(int $exitCode = 0) {
127 127
             //@codeCoverageIgnoreStart
128 128
             exit($exitCode);
129 129
             //@codeCoverageIgnoreEnd
Please login to merge, or discard this patch.
src/Input/Option.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,10 +61,10 @@
 block discarded – undo
61 61
      */
62 62
     protected string $short = '';
63 63
 
64
-     /**
65
-     * The long option name
66
-     * @var string
67
-     */
64
+        /**
65
+         * The long option name
66
+         * @var string
67
+         */
68 68
     protected string $long = '';
69 69
 
70 70
     /**
Please login to merge, or discard this patch.
src/IO/Interactor.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -248,9 +248,9 @@
 block discarded – undo
248 248
 
249 249
         foreach ($choices as $choice => $desc) {
250 250
             $this->writer->eol()
251
-                         ->cyan(
252
-                             str_pad(' [' . $choice . ']', $maxLength + 6)
253
-                         );
251
+                            ->cyan(
252
+                                str_pad(' [' . $choice . ']', $maxLength + 6)
253
+                            );
254 254
 
255 255
             $this->writer->dim($desc);
256 256
         }
Please login to merge, or discard this patch.
src/Command/Command.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -578,17 +578,17 @@
 block discarded – undo
578 578
     protected function defaults(): self
579 579
     {
580 580
         $this->addOption('-h|--help', 'Show help')
581
-              ->on([$this, 'showHelp']);
581
+                ->on([$this, 'showHelp']);
582 582
 
583 583
         $this->addOption('-v|--version', 'Show version')
584
-             ->on([$this, 'showVersion']);
584
+                ->on([$this, 'showVersion']);
585 585
 
586 586
         $this->addOption('-V|--verbosity', 'Verbosity level', 0)
587
-             ->on(function () {
587
+                ->on(function () {
588 588
                 $this->set('verbosity', ++$this->verbosity);
589 589
 
590 590
                 return false;
591
-             });
591
+                });
592 592
 
593 593
         $this->onExit(function (int $exitCode = 0) {
594 594
             $this->terminate($exitCode);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -584,13 +584,13 @@
 block discarded – undo
584 584
              ->on([$this, 'showVersion']);
585 585
 
586 586
         $this->addOption('-V|--verbosity', 'Verbosity level', 0)
587
-             ->on(function () {
587
+             ->on(function() {
588 588
                 $this->set('verbosity', ++$this->verbosity);
589 589
 
590 590
                 return false;
591 591
              });
592 592
 
593
-        $this->onExit(function (int $exitCode = 0) {
593
+        $this->onExit(function(int $exitCode = 0) {
594 594
             $this->terminate($exitCode);
595 595
         });
596 596
 
Please login to merge, or discard this patch.
src/Output/Writer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -803,7 +803,7 @@
 block discarded – undo
803 803
      * @param array<int, mixed> $args
804 804
      * @return $this|string
805 805
      */
806
-    public function __call(string $method, array $args = []): self|string
806
+    public function __call(string $method, array $args = []): self | string
807 807
     {
808 808
         if (method_exists($this->cursor, $method)) {
809 809
             return $this->cursor->{$method}(...$args);
Please login to merge, or discard this patch.
src/Input/Parser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
     {
222 222
         $value = null;
223 223
         if ($nextArg !== null && substr($nextArg, 0, 1) !== '-') {
224
-            $value =  $nextArg;
224
+            $value = $nextArg;
225 225
         }
226 226
 
227 227
         $option = $this->getOptionForArgument($arg);
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
         /** @var Parameter[] $missingItems */
301 301
         $missingItems = array_filter(
302 302
             $this->options + $this->arguments,
303
-            function (Parameter $item) {
303
+            function(Parameter $item) {
304 304
                 return $item->isRequired() && in_array(
305 305
                     $this->values[$item->getAttributeName()],
306 306
                     [null, []]
Please login to merge, or discard this patch.
src/Util/OutputHelper.php 2 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -109,19 +109,19 @@  discard block
 block discarded – undo
109 109
         $traceStr = '</eol></eol><info>Stack Trace:</end></eol></eol>';
110 110
         foreach ($error->getTrace() as $i => $trace) {
111 111
             $trace += [
112
-               'class' => '',
113
-               'type' => '',
114
-               'function' => '',
115
-               'file' => '',
116
-               'line' => '',
117
-               'args' => []
118
-               ];
112
+                'class' => '',
113
+                'type' => '',
114
+                'function' => '',
115
+                'file' => '',
116
+                'line' => '',
117
+                'args' => []
118
+                ];
119 119
 
120 120
             $symbol = $trace['class'] . $trace['type'] . $trace['function'];
121 121
             $arguments = $this->stringifyArgs($trace['args']);
122 122
 
123 123
             $traceStr .= ' <comment>' . $i . ')</end> <error>'
124
-                   . $symbol . '</end><comment>(' . $arguments . ')</end>';
124
+                    . $symbol . '</end><comment>(' . $arguments . ')</end>';
125 125
 
126 126
             if ($trace['file'] !== '') {
127 127
                 $file = realpath($trace['file']);
@@ -150,13 +150,13 @@  discard block
 block discarded – undo
150 150
         return $this;
151 151
     }
152 152
 
153
-     /**
154
-     * Show options help
155
-     * @param Option[] $items
156
-     * @param string $header
157
-     * @param string $footer
158
-     * @return $this
159
-     */
153
+        /**
154
+         * Show options help
155
+         * @param Option[] $items
156
+         * @param string $header
157
+         * @param string $footer
158
+         * @return $this
159
+         */
160 160
     public function showOptionsHelp(
161 161
         array $items,
162 162
         string $header = '',
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 
203 203
         if (strpos($usage, ' ## ') === false) {
204 204
             $this->writer->eol()->boldGreen('Usage Examples: ', true)
205
-                 ->colors($usage)->eol();
205
+                    ->colors($usage)->eol();
206 206
 
207 207
             return $this;
208 208
         }
@@ -245,8 +245,8 @@  discard block
 block discarded – undo
245 245
         );
246 246
 
247 247
         $this->writer->eol()
248
-                 ->boldGreen('Usage Examples: ', true)
249
-                 ->colors($formatedUsage)->eol();
248
+                    ->boldGreen('Usage Examples: ', true)
249
+                    ->colors($formatedUsage)->eol();
250 250
 
251 251
         return $this;
252 252
     }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
         string $header = '',
180 180
         string $footer = ''
181 181
     ): self {
182
-        $this->maxCommandWidth = !empty($items) ? max(array_map(function (Command $item) {
182
+        $this->maxCommandWidth = !empty($items) ? max(array_map(function(Command $item) {
183 183
             return strlen($item->getName());
184 184
         }, $items)) : 0;
185 185
 
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 
234 234
         $formatedUsage = (string) preg_replace_callback(
235 235
             '~ ## ~',
236
-            function () use (&$lines, $maxLength) {
236
+            function() use (&$lines, $maxLength) {
237 237
                 $sizeOfLine = 0;
238 238
                 $currentLine = array_shift($lines);
239 239
                 if ($currentLine !== null) {
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
      */
388 388
     protected function sortItems(array $items, int &$max = 0): array
389 389
     {
390
-        $results = array_map(function ($item) {
390
+        $results = array_map(function($item) {
391 391
             return strlen($this->getName($item));
392 392
         }, $items);
393 393
 
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
             $max = max($results);
397 397
         }
398 398
 
399
-        uasort($items, function (Parameter|Command $a, Parameter|Command $b) {
399
+        uasort($items, function(Parameter | Command $a, Parameter | Command $b) {
400 400
             return $a->getName() <=> $b->getName();
401 401
         });
402 402
 
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
      * @param Parameter|Command $item
409 409
      * @return string
410 410
      */
411
-    protected function getName(Parameter|Command $item): string
411
+    protected function getName(Parameter | Command $item): string
412 412
     {
413 413
         $name = $item->getName();
414 414
         if ($item instanceof Command) {
Please login to merge, or discard this patch.