Skip to content

Commit

Permalink
Shim newLine() method on L6 (fixes #320)
Browse files Browse the repository at this point in the history
  • Loading branch information
shalvah committed Sep 10, 2021
1 parent 0d50bb2 commit 31087fc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Commands/GenerateDocumentation.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ class GenerateDocumentation extends Command

private bool $forcing;

public function newLine($count = 1)
{
// TODO Remove when Laravel g is no longer supported
$this->getOutput()->write(str_repeat("\n", $count));
}

public function handle(RouteMatcherInterface $routeMatcher, GroupedEndpointsFactory $groupedEndpointsFactory): void
{
$this->bootstrap();
Expand Down
6 changes: 6 additions & 0 deletions src/Commands/Upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ class Upgrade extends Command

protected $description = '';

public function newLine($count = 1)
{
// TODO Remove when Laravel 6 is no longer supported
$this->getOutput()->write(str_repeat("\n", $count));
}

public function handle(): void
{
$oldConfig = config('scribe');
Expand Down

0 comments on commit 31087fc

Please sign in to comment.