@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | $answer = $this->helper->ask($this->input, $this->output, $question); |
46 | 46 | } while ($this->helpText !== null && $answer === '?'); |
47 | 47 | |
48 | - return \is_string($answer)? $answer: (string)$answer; |
|
48 | + return \is_string($answer) ? $answer : (string) $answer; |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | /** @return string[] */ |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | $answer = $this->helper->ask($this->input, $this->output, $question); |
58 | 58 | } while ($this->helpText !== null && $answer === '?'); |
59 | 59 | |
60 | - return \is_array($answer) ? $answer : [\is_string($answer) ? $answer : (string)$answer]; |
|
60 | + return \is_array($answer) ? $answer : [\is_string($answer) ? $answer : (string) $answer]; |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | private function initQuestion(bool $multiselect): SymfonyChoiceQuestion |
@@ -85,9 +85,9 @@ discard block |
||
85 | 85 | $choices = $this->choices; |
86 | 86 | $errorMessage = 'Value "%s" is invalid'; |
87 | 87 | $multiselect = $this->multiselect; |
88 | - $isAssoc = (bool)count(array_filter(array_keys($this->choices), '\is_string')); |
|
88 | + $isAssoc = (bool) count(array_filter(array_keys($this->choices), '\is_string')); |
|
89 | 89 | |
90 | - return function ($selected) use ($choices, $errorMessage, $multiselect, $isAssoc) { |
|
90 | + return function($selected) use ($choices, $errorMessage, $multiselect, $isAssoc) { |
|
91 | 91 | |
92 | 92 | // Collapse all spaces. |
93 | 93 | $selectedChoices = str_replace(' ', '', $selected); |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | if (false === $result) { |
136 | 136 | throw new InvalidArgumentException(sprintf($errorMessage, $value)); |
137 | 137 | } |
138 | - $multiselectChoices[] = (string)$result; |
|
138 | + $multiselectChoices[] = (string) $result; |
|
139 | 139 | } |
140 | 140 | if ($multiselect) { |
141 | 141 | if ($this->printAnswer) { |