10000 Split a method · symfony/symfony@55fef91 · GitHub
[go: up one dir, main page]

Skip to content

Commit 55fef91

Browse files
committed
Split a method
1 parent d00b5b5 commit 55fef91

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/Symfony/Component/Console/Cursor.php

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,17 @@ public function show()
8181
/**
8282
* Clears all the output from the current line.
8383
*/
84-
public function clearLine(bool $fromCurrentPosition = false)
84+
public function clearLine()
8585
{
86-
if (true === $fromCurrentPosition) {
87-
$this->output->write("\x1b[K");
88-
} else {
89-
$this->output->write("\x1b[2K");
90-
}
86+
$this->output->write("\x1b[2K");
87+
}
88+
89+
/**
90+
* Clears all the output from the current line after the current position.
91+
*/
92+
public function clearLineAfter()
93+
{
94+
$this->output->write("\x1b[K");
9195
}
9296< 3DC3 code class="diff-text syntax-highlighted-line">

9397
/**

0 commit comments

Comments
 (0)
0