diff --git a/src/View/LineView.php b/src/View/LineView.php index 46a3bc2..c1c0c20 100644 --- a/src/View/LineView.php +++ b/src/View/LineView.php @@ -27,8 +27,13 @@ public function line(string $text): void */ public function newLine(int $count = 1): void { - $lines = implode('', array_fill(0, max(1, $count), PHP_EOL)); + $this->writeLine( + $this->buildLine(max(1, $count)) + ); + } - $this->writeLine($lines); + protected function buildLine(int $count): string + { + return implode('', array_fill(0, max(1, $count), PHP_EOL)); } }