File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
src/Symfony/Component/Console Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -384,10 +384,13 @@ private function humaneTime($secs)
384
384
*/
385
385
private function overwrite (OutputInterface $ output , $ messages )
386
386
{
387
- $ output ->write ("\x0D" ); // carriage return
388
- if ($ this ->lastMessagesLength !==null ){
389
- $ output ->write (str_repeat ("\x20" , $ this ->lastMessagesLength )); //clear the line with the length of the last message
390
- $ output ->write ("\x0D" ); // carriage return
387
+ // carriage return
388
+ $ output ->write ("\x0D" );
389
+ if ($ this ->lastMessagesLength !==null ) {
390
+ // clear the line with the length of the last message
391
+ $ output ->write (str_repeat ("\x20" , $ this ->lastMessagesLength ));
392
+ // carriage return
393
+ $ output ->write ("\x0D" );
391
394
}
392
395
$ output ->write ($ messages );
393
396
Original file line number Diff line number Diff line change @@ -85,11 +85,11 @@ protected function generateOutput($expected)
85
85
{
86
86
$ expectedout = $ expected ;
87
87
88
- if ($ this ->lastMessagesLength !==null ){
89
- $ expectedout= str_repeat ("\x20" , $ this ->lastMessagesLength )."\x0D" .$ expected ;
88
+ if ($ this ->lastMessagesLength !== null ) {
89
+ $ expectedout = str_repeat ("\x20" , $ this ->lastMessagesLength )."\x0D" .$ expected ;
90
90
}
91
91
92
- $ this ->lastMessagesLength = strlen ($ expected );
92
+ $ this ->lastMessagesLength = strlen ($ expected );
93
93
94
94
return "\x0D" .$ expectedout ;
95
95
}
You can’t perform that action at this time.
0 commit comments