Skip to content

Commit

Permalink
Set default value
Browse files Browse the repository at this point in the history
  • Loading branch information
kitloong committed Jun 27, 2024
1 parent 82a9bd5 commit 0a3998d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/ExportRequestDocsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ public function handle(): int

// Loop and split Doc by the `methods` property.
$docs = $this->laravelRequestDocs->splitByMethods($docs);
$docs = $this->laravelRequestDocs->sortDocs($docs, $this->option('sort'));
$docs = $this->laravelRequestDocs->groupDocs($docs, $this->option('groupby'));
$docs = $this->laravelRequestDocs->sortDocs($docs, $this->option('sort') ?? 'default');

Check failure on line 76 in src/Commands/ExportRequestDocsCommand.php

View workflow job for this annotation

GitHub Actions / PHP lint

Parameter #2 $sortBy of method Rakutentech\LaravelRequestDocs\LaravelRequestDocs::sortDocs() expects string|null, array|bool|string given.
$docs = $this->laravelRequestDocs->groupDocs($docs, $this->option('groupby') ?? 'default');

Check failure on line 77 in src/Commands/ExportRequestDocsCommand.php

View workflow job for this annotation

GitHub Actions / PHP lint

Parameter #2 $groupBy of method Rakutentech\LaravelRequestDocs\LaravelRequestDocs::groupDocs() expects string|null, array|bool|string given.

if (!$this->writeApiDocsToFile($docs)) {
throw new ErrorException("Failed to write on [{$this->exportFilePath}] file.");
Expand Down

0 comments on commit 0a3998d

Please sign in to comment.