From 695f9801c5430a567869c3b0cd033f4c56172639 Mon Sep 17 00:00:00 2001 From: Scott Carpenter Date: Thu, 8 Oct 2020 11:42:06 -0600 Subject: [PATCH 1/2] Add `newLine()` method to `InteractsWithIO` trait --- src/Illuminate/Console/Concerns/InteractsWithIO.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/Illuminate/Console/Concerns/InteractsWithIO.php b/src/Illuminate/Console/Concerns/InteractsWithIO.php index e61ef560420c..674b3a089cfb 100644 --- a/src/Illuminate/Console/Concerns/InteractsWithIO.php +++ b/src/Illuminate/Console/Concerns/InteractsWithIO.php @@ -332,7 +332,18 @@ public function alert($string) $this->comment('* '.$string.' *'); $this->comment(str_repeat('*', $length)); - $this->output->newLine(); + $this->newLine(); + } + + /** + * Write newline(s). + * + * @param int $count + * @return void + */ + public function newLine($count = 1) + { + $this->output->newLine($count); } /** From 070b27c7921dd267a65274b8f5a24bc75826d415 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 8 Oct 2020 13:28:22 -0500 Subject: [PATCH 2/2] Update InteractsWithIO.php --- src/Illuminate/Console/Concerns/InteractsWithIO.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Console/Concerns/InteractsWithIO.php b/src/Illuminate/Console/Concerns/InteractsWithIO.php index 674b3a089cfb..045d9abf5dcb 100644 --- a/src/Illuminate/Console/Concerns/InteractsWithIO.php +++ b/src/Illuminate/Console/Concerns/InteractsWithIO.php @@ -336,7 +336,7 @@ public function alert($string) } /** - * Write newline(s). + * Write a blank line. * * @param int $count * @return void