Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix CS and typos

  • Loading branch information...
commit c0f8a63e61467f62b48dd2d9912e8c0b411545d7 1 parent 26c35e0
Romain Neutron romainneutron authored
Showing with 3 additions and 5 deletions.
  1. +3 −5 src/Symfony/Component/Console/Helper/DialogHelper.php
8 src/Symfony/Component/Console/Helper/DialogHelper.php
View
@@ -74,7 +74,7 @@ public function askConfirmation(OutputInterface $output, $question, $default = t
}
/**
- * Ask a question to the user, the response is hidden
+ * Asks a question to the user, the response is hidden
*
* @param OutputInterface $output An Output instance
* @param string|array $question The question
@@ -82,7 +82,7 @@ public function askConfirmation(OutputInterface $output, $question, $default = t
*
* @return string The answer
*
- * @throws \RuntimeException In case the fallback is disactivated and the response can not be hidden
+ * @throws \RuntimeException In case the fallback is deactivated and the response can not be hidden
*/
public function askHiddenResponse(OutputInterface $output, $question, $fallback = true)
{
@@ -108,7 +108,6 @@ public function askHiddenResponse(OutputInterface $output, $question, $fallback
}
if ($this->hasSttyAvailable()) {
-
$output->write($question);
$sttyMode = shell_exec('/usr/bin/env stty -g');
@@ -128,7 +127,6 @@ public function askHiddenResponse(OutputInterface $output, $question, $fallback
}
if (false !== $shell = $this->getShell()) {
-
$output->write($question);
$readCmd = $shell === 'csh' ? 'set mypassword = $<' : 'read mypassword';
$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, $
* @return string The response
*
* @throws \Exception When any of the validators return an error
- * @throws \RuntimeException In case the fallback is disactivated and the response can not be hidden
+ * @throws \RuntimeException In case the fallback is deactivated and the response can not be hidden
*
*/
public function askHiddenResponseAndValidate(OutputInterface $output, $question, $validator, $attempts = false, $fallback = true)
Please sign in to comment.
Something went wrong with that request. Please try again.