From 05348991c263e714aac848b119e99d2f8ff77507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Perrin?= Date: Tue, 28 Jul 2015 14:45:38 +0200 Subject: [PATCH] [Console] Fix Symfony coding standards violations --- src/Symfony/Component/Console/Helper/QuestionHelper.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Symfony/Component/Console/Helper/QuestionHelper.php b/src/Symfony/Component/Console/Helper/QuestionHelper.php index 17605fe64c..dc68fe6e71 100644 --- a/src/Symfony/Component/Console/Helper/QuestionHelper.php +++ b/src/Symfony/Component/Console/Helper/QuestionHelper.php @@ -77,7 +77,7 @@ class QuestionHelper extends Helper } /** - * Returns the helper's input stream + * Returns the helper's input stream. * * @return resource */ @@ -146,7 +146,7 @@ class QuestionHelper extends Helper * Outputs the question prompt. * * @param OutputInterface $output - * @param Question $question + * @param Question $question */ protected function writePrompt(OutputInterface $output, Question $question) { @@ -218,7 +218,7 @@ class QuestionHelper extends Helper // Backspace Character if ("\177" === $c) { if (0 === $numMatches && 0 !== $i) { - $i--; + --$i; // Move cursor backwards $output->write("\033[1D"); } @@ -271,7 +271,7 @@ class QuestionHelper extends Helper } else { $output->write($c); $ret .= $c; - $i++; + ++$i; $numMatches = 0; $ofs = 0;