Passed
Pull Request — master (#69)
by Julien
02:09
created
src/Question/Question.php 1 patch
Spacing   +4 added lines, -4 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.');
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
                 return $validator ? $validator($response) : $response;
107 107
             };
108 108
         } else {
109
-            $validator = function (?string $response) use ($validator) {
109
+            $validator = function(?string $response) use ($validator) {
110 110
                 $response = $response ?? '';
111 111
                 if (trim($response) === '') {
112 112
                     return $response;
Please login to merge, or discard this patch.