File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
src/Symfony/Component/Console/Helper Expand file tree Collapse file tree 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
441441 if ($ this ->overwrite ) {
442442 if (null !== $ this ->previousMessage ) {
443443 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 ());
450450 }
451451 }
452- $ this ->output ->clear ($ line_count );
452+ $ this ->output ->clear ($ lineCount );
453453 } else {
454454 // Erase previous lines
455455 if ($ this ->formatLineCount > 0 ) {
You can’t perform that action at this time.
0 commit comments