@@ -74,15 +74,15 @@ public function askConfirmation(OutputInterface $output, $question, $default = t
74
74
}
75
75
76
76
/**
77
- * Ask a question to the user, the response is hidden
77
+ * Asks a question to the user, the response is hidden
78
78
*
79
79
* @param OutputInterface $output An Output instance
80
80
* @param string|array $question The question
81
81
* @param Boolean $fallback In case the response can not be hidden, whether to fallback on non-hidden question or not
82
82
*
83
83
* @return string The answer
84
84
*
85
- * @throws \RuntimeException In case the fallback is disactivated and the response can not be hidden
85
+ * @throws \RuntimeException In case the fallback is deactivated and the response can not be hidden
86
86
*/
87
87
public function askHiddenResponse (OutputInterface $ output , $ question , $ fallback = true )
88
88
{
@@ -108,7 +108,6 @@ public function askHiddenResponse(OutputInterface $output, $question, $fallback
108
108
}
109
109
110
110
if ($ this ->hasSttyAvailable ()) {
111
-
112
111
$ output ->write ($ question );
113
112
114
113
$ sttyMode = shell_exec ('/usr/bin/env stty -g ' );
@@ -128,7 +127,6 @@ public function askHiddenResponse(OutputInterface $output, $question, $fallback
128
127
}
129
128
130
129
if (false !== $ shell = $ this ->getShell ()) {
131
-
132
130
$ output ->write ($ question );
133
131
$ readCmd = $ shell === 'csh ' ? 'set mypassword = $< ' : 'read mypassword ' ;
134
132
$ command = sprintf ("/usr/bin/env %s -c 'stty -echo; %s; stty echo; echo \$mypassword' " , $ shell , $ readCmd );
@@ -189,7 +187,7 @@ public function askAndValidate(OutputInterface $output, $question, $validator, $
189
187
* @return string The response
190
188
*
191
189
* @throws \Exception When any of the validators return an error
192
- * @throws \RuntimeException In case the fallback is disactivated and the response can not be hidden
190
+ * @throws \RuntimeException In case the fallback is deactivated and the response can not be hidden
193
191
*
194
192
*/
195
193
public function askHiddenResponseAndValidate (OutputInterface $ output , $ question , $ validator , $ attempts = false , $ fallback = true )
0 commit comments