@@ -441,15 +441,15 @@ private function overwrite(string $message): void
441441if ($ this ->overwrite ) {
442442if (null !==$ this ->previousMessage ) {
443443if ($ 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
455455if ($ this ->formatLineCount >0 ) {