Skip to content

Commit

Permalink
[8.x] Add newLine() method to InteractsWithIO trait (#34754)
Browse files Browse the repository at this point in the history
* Add `newLine()` method to `InteractsWithIO` trait

* Update InteractsWithIO.php

Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
squatto and taylorotwell committed Oct 8, 2020
1 parent 0b9010d commit 5408874
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/Illuminate/Console/Concerns/InteractsWithIO.php
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 5408874

Please sign in to comment.