Passed
Push — develop ( add880...26f5dd )
by nguereza
02:36
created
src/Command/Command.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -585,13 +585,13 @@
 block discarded – undo
585 585
              ->on([$this, 'showVersion']);
586 586
 
587 587
         $this->addOption('-V|--verbosity', 'Verbosity level', 0)
588
-             ->on(function () {
588
+             ->on(function() {
589 589
                 $this->set('verbosity', $this->verbosity++);
590 590
 
591 591
                 return false;
592 592
              });
593 593
 
594
-        $this->onExit(function (int $exitCode = 0) {
594
+        $this->onExit(function(int $exitCode = 0) {
595 595
             exit($exitCode);
596 596
         });
597 597
 
Please login to merge, or discard this patch.
src/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
         $this->name = $name;
125 125
         $this->version = $version;
126 126
 
127
-        $this->onExit = $onExit ? $onExit : function (int $exitCode = 0) {
127
+        $this->onExit = $onExit ? $onExit : function(int $exitCode = 0) {
128 128
             exit($exitCode);
129 129
         };
130 130
 
Please login to merge, or discard this patch.
src/Util/OutputHelper.php 1 patch
Spacing   +4 added lines, -4 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
 
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
         $maxLength = (int) max($lines) + 4;
232 232
         $formatedUsage = (string) preg_replace_callback(
233 233
             '~ ## ~',
234
-            function () use (&$lines, $maxLength) {
234
+            function() use (&$lines, $maxLength) {
235 235
                 $sizeOfLine = 0;
236 236
                 $currentLine = array_shift($lines);
237 237
                 if ($currentLine !== null) {
@@ -387,11 +387,11 @@  discard block
 block discarded – undo
387 387
      */
388 388
     protected function sortItems(array $items, int &$max = 0): array
389 389
     {
390
-        $max = max(array_map(function ($item) {
390
+        $max = max(array_map(function($item) {
391 391
             return strlen($this->getName($item));
392 392
         }, $items));
393 393
 
394
-        uasort($items, function ($a, $b) {
394
+        uasort($items, function($a, $b) {
395 395
             /* @var Parameter $b */
396 396
             /* @var Parameter $a */
397 397
             return $a->getName() <=> $b->getName();
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
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
     {
221 221
         $value = null;
222 222
         if ($nextArg !== null && substr($nextArg, 0, 1) !== '-') {
223
-            $value =  $nextArg;
223
+            $value = $nextArg;
224 224
         }
225 225
 
226 226
         $option = $this->getOptionForArgument($arg);
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
         /** @var array<Parameter> $missingItems */
297 297
         $missingItems = array_filter(
298 298
             $this->options + $this->arguments,
299
-            function ($item) {
299
+            function($item) {
300 300
             /** @var Parameter $item */
301 301
                 return $item->isRequired() && in_array(
302 302
                     $this->values[$item->getAttributeName()],
Please login to merge, or discard this patch.
src/Output/Table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         list($start, $end) = $normalizedStyles['head'];
81 81
         foreach ($head as $col => $size) {
82 82
             $dash[] = str_repeat('-', (int) $size + 2);
83
-            $title[] = str_pad(Helper::toWords($col), (int)$size, ' ');
83
+            $title[] = str_pad(Helper::toWords($col), (int) $size, ' ');
84 84
         }
85 85
 
86 86
         $titleStr = '|' . $start . ' '
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             $parts = [];
93 93
             list($start, $end) = $normalizedStyles[['even', 'odd'][(int) $odd]];
94 94
             foreach ($head as $col => $size) {
95
-                $parts[] = str_pad(isset($row[$col]) ? $row[$col] : '', (int)$size, ' ');
95
+                $parts[] = str_pad(isset($row[$col]) ? $row[$col] : '', (int) $size, ' ');
96 96
             }
97 97
 
98 98
             $odd = !$odd;
Please login to merge, or discard this patch.