From 5408874ba76e513bd63cb0c13fa42e5918a3eaab Mon Sep 17 00:00:00 2001 From: Scott Carpenter Date: Thu, 8 Oct 2020 12:28:37 -0600 Subject: [PATCH] [8.x] Add `newLine()` method to `InteractsWithIO` trait (#34754) * Add `newLine()` method to `InteractsWithIO` trait * Update InteractsWithIO.php Co-authored-by: Taylor Otwell --- 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..045d9abf5dcb 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 a blank line. + * + * @param int $count + * @return void + */ + public function newLine($count = 1) + { + $this->output->newLine($count); } /**