@@ -75,7 +75,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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.'); |