[Console] minor fix
This commit is contained in:
parent
689056ef7f
commit
7eb4db6d9d
@ -309,7 +309,7 @@ class QuestionHelper extends Helper
|
|||||||
$remainingCharacters = substr($ret, \strlen(trim($this->mostRecentlyEnteredValue($fullChoice))));
|
$remainingCharacters = substr($ret, \strlen(trim($this->mostRecentlyEnteredValue($fullChoice))));
|
||||||
$output->write($remainingCharacters);
|
$output->write($remainingCharacters);
|
||||||
$fullChoice .= $remainingCharacters;
|
$fullChoice .= $remainingCharacters;
|
||||||
$i = self::strlen($fullChoice);
|
$i = (false === $encoding = mb_detect_encoding($fullChoice, null, true)) ? \strlen($fullChoice) : mb_strlen($fullChoice, $encoding);
|
||||||
|
|
||||||
$matches = array_filter(
|
$matches = array_filter(
|
||||||
$autocomplete($ret),
|
$autocomplete($ret),
|
||||||
|
@ -496,8 +496,6 @@ class SymfonyStyle extends OutputStyle
|
|||||||
}
|
}
|
||||||
|
|
||||||
$line = $prefix.$line;
|
$line = $prefix.$line;
|
||||||
$decorationLength = Helper::strlen($line) - Helper::strlenWithoutDecoration($this->getFormatter(), $line);
|
|
||||||
$messageLineLength = min($this->lineLength - $prefixLength - $indentLength + $decorationLength, $this->lineLength);
|
|
||||||
$line .= str_repeat(' ', max($this->lineLength - Helper::strlenWithoutDecoration($this->getFormatter(), $line), 0));
|
$line .= str_repeat(' ', max($this->lineLength - Helper::strlenWithoutDecoration($this->getFormatter(), $line), 0));
|
||||||
|
|
||||||
if ($style) {
|
if ($style) {
|
||||||
|
Reference in New Issue
Block a user