Completed
Pull Request — master (#61)
by Jindun
02:58
created
src/Question/Question.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         $validator = $this->validator;
76 76
 
77 77
         if ($this->yesNoQuestion) {
78
-            $validator = function (?string $response) use ($validator) {
78
+            $validator = function(?string $response) use ($validator) {
79 79
                 $response = $response ?? '';
80 80
                 $response = \strtolower(trim($response));
81 81
                 if (!\in_array($response, ['y', 'n', 'yes', 'no'])) {
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         }
88 88
 
89 89
         if (null !== $this->helpText) {
90
-            $validator = function (?string $response) use ($validator) {
90
+            $validator = function(?string $response) use ($validator) {
91 91
                 $response = $response ?? '';
92 92
                 if (trim($response) === '?') {
93 93
                     $this->output->writeln($this->helpText ?: '');
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         }
99 99
 
100 100
         if ($this->compulsory) {
101
-            $validator = function (?string $response) use ($validator) {
101
+            $validator = function(?string $response) use ($validator) {
102 102
                 $response = $response ?? '';
103 103
                 if (trim($response) === '') {
104 104
                     throw new \InvalidArgumentException('This field is compulsory.');
Please login to merge, or discard this patch.