Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c0f8a63

Browse filesBrowse files
committed
Fix CS and typos
1 parent 26c35e0 commit c0f8a63
Copy full SHA for c0f8a63

File tree

Expand file treeCollapse file tree

1 file changed

+3
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-5
lines changed
Open diff view settings
Collapse file

‎src/Symfony/Component/Console/Helper/DialogHelper.php‎

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Helper/DialogHelper.php
+3-5Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.