Completed
Push — master ( aafc8c...73adad )
by Jitendra
11s
created
src/Application.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@
 block discarded – undo
182 182
         $argv += [null, null, null];
183 183
 
184 184
         return
185
-             // cmd
185
+                // cmd
186 186
             $this->commands[$argv[1]]
187 187
             // cmd alias
188 188
             ?? $this->commands[$this->aliases[$argv[1]] ?? null]
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         $this->version = $version;
46 46
 
47 47
         // @codeCoverageIgnoreStart
48
-        $this->onExit = $onExit ?? function ($exitCode = 0) {
48
+        $this->onExit = $onExit ?? function($exitCode = 0) {
49 49
             exit($exitCode);
50 50
         };
51 51
         // @codeCoverageIgnoreEnd
Please login to merge, or discard this patch.
src/Input/Command.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,14 +74,14 @@
 block discarded – undo
74 74
     {
75 75
         $this->option('-h, --help', 'Show help')->on([$this, 'showHelp']);
76 76
         $this->option('-V, --version', 'Show version')->on([$this, 'showVersion']);
77
-        $this->option('-v, --verbosity', 'Verbosity level', null, 0)->on(function () {
77
+        $this->option('-v, --verbosity', 'Verbosity level', null, 0)->on(function() {
78 78
             $this->set('verbosity', ($this->verbosity ?? 0) + 1);
79 79
 
80 80
             return false;
81 81
         });
82 82
 
83 83
         // @codeCoverageIgnoreStart
84
-        $this->onExit(function ($exitCode = 0) {
84
+        $this->onExit(function($exitCode = 0) {
85 85
             exit($exitCode);
86 86
         });
87 87
         // @codeCoverageIgnoreEnd
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
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     {
106 106
         $value = \substr($nextArg, 0, 1) === '-' ? null : $nextArg;
107 107
 
108
-        if (null === $option  = $this->optionFor($arg)) {
108
+        if (null === $option = $this->optionFor($arg)) {
109 109
             return $this->handleUnknown($arg, $value);
110 110
         }
111 111
 
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
     protected function validate()
201 201
     {
202 202
         /** @var Parameter[] $missingItems */
203
-        $missingItems = \array_filter($this->_options + $this->_arguments, function ($item) {
203
+        $missingItems = \array_filter($this->_options + $this->_arguments, function($item) {
204 204
             /* @var Parameter $item */
205 205
             return $item->required() && \in_array($this->_values[$item->attributeName()], [null, []]);
206 206
         });
Please login to merge, or discard this patch.
src/Helper/OutputHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     public function showCommandsHelp(array $commands, string $header = '', string $footer = ''): self
68 68
     {
69
-        $this->maxCmdName = $commands ? \max(\array_map(function (Command $cmd) {
69
+        $this->maxCmdName = $commands ? \max(\array_map(function(Command $cmd) {
70 70
             return \strlen($cmd->name());
71 71
         }, $commands)) : 0;
72 72
 
@@ -121,11 +121,11 @@  discard block
 block discarded – undo
121 121
      */
122 122
     protected function sortItems(array $items, &$max = 0): array
123 123
     {
124
-        $max = \max(\array_map(function ($item) {
124
+        $max = \max(\array_map(function($item) {
125 125
             return \strlen($this->getName($item));
126 126
         }, $items));
127 127
 
128
-        \uasort($items, function ($a, $b) {
128
+        \uasort($items, function($a, $b) {
129 129
             /* @var Parameter $b */
130 130
             /* @var Parameter $a */
131 131
             return $a->name() <=> $b->name();
Please login to merge, or discard this patch.