Completed
Pull Request — master (#38)
by Julien
02:00
created
src/Helper/Question.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
         $validator = $this->validator;
126 126
 
127 127
         if ($this->yesNoQuestion) {
128
-            $validator = function (?string $response) use ($validator) {
128
+            $validator = function(?string $response) use ($validator) {
129 129
                 $response = $response ?? '';
130 130
                 $response = \strtolower(trim($response));
131 131
                 if (!\in_array($response, ['y', 'n', 'yes', 'no'])) {
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         }
138 138
 
139 139
         if ($this->choiceQuestion) {
140
-            $validator = function (?string $response) use ($validator) {
140
+            $validator = function(?string $response) use ($validator) {
141 141
                 $response = $response ?? '';
142 142
                 if (!$this->multiselectQuestion) {
143 143
                     $index = intval($response);
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
         }
153 153
 
154 154
         if ($this->helpText !== null) {
155
-            $validator = function (?string $response) use ($validator) {
155
+            $validator = function(?string $response) use ($validator) {
156 156
                 $response = $response ?? '';
157 157
                 if (trim($response) === '?') {
158 158
                     $this->output->writeln($this->helpText ?: '');
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
         }
164 164
 
165 165
         if ($this->compulsory) {
166
-            $validator = function (?string $response) use ($validator) {
166
+            $validator = function(?string $response) use ($validator) {
167 167
                 $response = $response ?? '';
168 168
                 if (trim($response) === '') {
169 169
                     throw new \InvalidArgumentException('This field is compulsory.');
Please login to merge, or discard this patch.
src/EventCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,9 +73,9 @@
 block discarded – undo
73 73
      */
74 74
     public function getAllEventNames(): array
75 75
     {
76
-        return array_map(function (EventCommand $event) {
76
+        return array_map(function(EventCommand $event) {
77 77
             return $event->getEventName();
78
-        }, \array_filter($this->getApplication()->all(), function (Command $command) {
78
+        }, \array_filter($this->getApplication()->all(), function(Command $command) {
79 79
             return $command instanceof EventCommand && !$command->isHidden();
80 80
         }));
81 81
     }
Please login to merge, or discard this patch.