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)
|
||||
{
|
||||
$output->write("\x0D"); // carriage return
|
||||
if($this->lastMessagesLength!==null){
|
||||
$output->write(str_repeat("\x20", $this->lastMessagesLength)); //clear the line with the length of the last message
|
||||
$output->write("\x0D"); // carriage return
|
||||
// carriage return
|
||||
$output->write("\x0D");
|
||||
if ($this->lastMessagesLength!==null) {
|
||||
// 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);
|
||||
|
||||
|
@ -85,11 +85,11 @@ class ProgressHelperTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
$expectedout = $expected;
|
||||
|
||||
if($this->lastMessagesLength!==null){
|
||||
$expectedout=str_repeat("\x20", $this->lastMessagesLength)."\x0D".$expected;
|
||||
if ($this->lastMessagesLength !== null) {
|
||||
$expectedout = str_repeat("\x20", $this->lastMessagesLength)."\x0D".$expected;
|
||||
}
|
||||
|
||||
$this->lastMessagesLength=strlen($expected);
|
||||
$this->lastMessagesLength = strlen($expected);
|
||||
|
||||
return "\x0D".$expectedout;
|
||||
}
|
||||
|
Reference in New Issue
Block a user