fixed CS
This commit is contained in:
parent
8bbc64d3ec
commit
7200703089
@ -384,10 +384,13 @@ class ProgressHelper extends Helper
|
|||||||
*/
|
*/
|
||||||
private function overwrite(OutputInterface $output, $messages)
|
private function overwrite(OutputInterface $output, $messages)
|
||||||
{
|
{
|
||||||
$output->write("\x0D"); // carriage return
|
// carriage return
|
||||||
if($this->lastMessagesLength!==null){
|
$output->write("\x0D");
|
||||||
$output->write(str_repeat("\x20", $this->lastMessagesLength)); //clear the line with the length of the last message
|
if ($this->lastMessagesLength!==null) {
|
||||||
$output->write("\x0D"); // carriage return
|
// clear the line with the length of the last message
|
||||||
|
$output->write(str_repeat("\x20", $this->lastMessagesLength));
|
||||||
|
// carriage return
|
||||||
|
$output->write("\x0D");
|
||||||
}
|
}
|
||||||
$output->write($messages);
|
$output->write($messages);
|
||||||
|
|
||||||
|
@ -85,11 +85,11 @@ class ProgressHelperTest extends \PHPUnit_Framework_TestCase
|
|||||||
{
|
{
|
||||||
$expectedout = $expected;
|
$expectedout = $expected;
|
||||||
|
|
||||||
if($this->lastMessagesLength!==null){
|
if ($this->lastMessagesLength !== null) {
|
||||||
$expectedout=str_repeat("\x20", $this->lastMessagesLength)."\x0D".$expected;
|
$expectedout = str_repeat("\x20", $this->lastMessagesLength)."\x0D".$expected;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->lastMessagesLength=strlen($expected);
|
$this->lastMessagesLength = strlen($expected);
|
||||||
|
|
||||||
return "\x0D".$expectedout;
|
return "\x0D".$expectedout;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user