Skip to content

Commit

Permalink
String check
Browse files Browse the repository at this point in the history
  • Loading branch information
kitloong committed Jun 27, 2024
1 parent 0a3998d commit 8b8a2ea
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') ?? 'default');
$docs = $this->laravelRequestDocs->groupDocs($docs, $this->option('groupby') ?? 'default');
$docs = $this->laravelRequestDocs->sortDocs($docs, is_string($this->option('sort')) ? $this->option('sort') : 'default');
$docs = $this->laravelRequestDocs->groupDocs($docs, is_string($this->option('groupby')) ? $this->option('groupby') : 'default');

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

0 comments on commit 8b8a2ea

Please sign in to comment.