Completed
Push — master ( 0c8701...84a040 )
by Julien
13s
created
src/Helper/Question.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         $validator = $this->validator;
113 113
 
114 114
         if ($this->yesNoQuestion) {
115
-            $validator = function (?string $response) use ($validator) {
115
+            $validator = function(?string $response) use ($validator) {
116 116
                 $response = $response ?? '';
117 117
                 $response = \strtolower(trim($response));
118 118
                 if (!\in_array($response, ['y', 'n', 'yes', 'no'])) {
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
         }
125 125
 
126 126
         if ($this->helpText !== null) {
127
-            $validator = function (?string $response) use ($validator) {
127
+            $validator = function(?string $response) use ($validator) {
128 128
                 $response = $response ?? '';
129 129
                 if (trim($response) === '?') {
130 130
                     $this->output->writeln($this->helpText ?: '');
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
         }
136 136
 
137 137
         if ($this->compulsory) {
138
-            $validator = function (?string $response) use ($validator) {
138
+            $validator = function(?string $response) use ($validator) {
139 139
                 $response = $response ?? '';
140 140
                 if (trim($response) === '') {
141 141
                     throw new \InvalidArgumentException('This field is compulsory.');
Please login to merge, or discard this patch.