@@ -74,15 +74,15 @@ public function askConfirmation(OutputInterface $output, $question, $default = t
7474 }
7575
7676 /**
77- * Ask a question to the user, the response is hidden
77+ * Asks a question to the user, the response is hidden
7878 *
7979 * @param OutputInterface $output An Output instance
8080 * @param string|array $question The question
8181 * @param Boolean $fallback In case the response can not be hidden, whether to fallback on non-hidden question or not
8282 *
8383 * @return string The answer
8484 *
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
8686 */
8787 public function askHiddenResponse (OutputInterface $ output , $ question , $ fallback = true )
8888 {
@@ -108,7 +108,6 @@ public function askHiddenResponse(OutputInterface $output, $question, $fallback
108108 }
109109
110110 if ($ this ->hasSttyAvailable ()) {
111-
112111 $ output ->write ($ question );
113112
114113 $ sttyMode = shell_exec ('/usr/bin/env stty -g ' );
@@ -128,7 +127,6 @@ public function askHiddenResponse(OutputInterface $output, $question, $fallback
128127 }
129128
130129 if (false !== $ shell = $ this ->getShell ()) {
131-
132130 $ output ->write ($ question );
133131 $ readCmd = $ shell === 'csh ' ? 'set mypassword = $< ' : 'read mypassword ' ;
134132 $ 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, $
189187 * @return string The response
190188 *
191189 * @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
193191 *
194192 */
195193 public function askHiddenResponseAndValidate (OutputInterface $ output , $ question , $ validator , $ attempts = false , $ fallback = true )
0 commit comments