File tree 1 file changed +7
-7
lines changed
src/Symfony/Component/Console/Helper 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -441,15 +441,15 @@ private function overwrite(string $message): void
441
441
if ($ this ->overwrite ) {
442
442
if (null !== $ this ->previousMessage ) {
443
443
if ($ this ->output instanceof ConsoleSectionOutput) {
444
- $ message_lines = explode ("\n" , $ message );
445
- $ line_count = \count ($ message_lines );
446
- foreach ($ message_lines as $ message_line ) {
447
- $ message_line_length = Helper::strlenWithoutDecoration ($ this ->output ->getFormatter (), $ message_line );
448
- if ($ message_line_length > $ this ->terminal ->getWidth ()) {
449
- $ line_count += floor ($ message_line_length / $ this ->terminal ->getWidth ());
444
+ $ messageLines = explode ("\n" , $ message );
445
+ $ lineCount = \count ($ messageLines );
446
+ foreach ($ messageLines as $ messageLine ) {
447
+ $ messageLineLength = Helper::strlenWithoutDecoration ($ this ->output ->getFormatter (), $ messageLine );
448
+ if ($ messageLineLength > $ this ->terminal ->getWidth ()) {
449
+ $ lineCount += floor ($ messageLineLength / $ this ->terminal ->getWidth ());
450
450
}
451
451
}
452
- $ this ->output ->clear ($ line_count );
452
+ $ this ->output ->clear ($ lineCount );
453
453
} else {
454
454
// Erase previous lines
455
455
if ($ this ->formatLineCount > 0 ) {
You can’t perform that action at this time.
0 commit comments