Skip to content

Commit

Permalink
lint fix and change log
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Oct 2, 2023
1 parent 649bdfd commit 0b81e47
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ Fixing lints
- v2.14 Adds path params support
- v2.16 Top Navbar is fixed
- v2.19 Publish _astro assets
- v2.20 `laravel-request-docs:export` command to export
# Contributors
Expand Down
12 changes: 6 additions & 6 deletions src/Commands/ExportRequestDocsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __construct(LaravelRequestDocs $laravelRequestDoc, LaravelReques
{
parent::__construct();

$this->laravelRequestDocs = $laravelRequestDoc;
$this->laravelRequestDocs = $laravelRequestDoc;
$this->laravelRequestDocsToOpenApi = $laravelRequestDocsToOpenApi;
}

Expand Down Expand Up @@ -56,12 +56,12 @@ public function handle()
$excludedMethods = array_map(fn($item) => strtolower($item), $excludedMethods);

//filter while method apis to export
$showGet = !in_array('get', $excludedMethods);
$showPost = !in_array('post', $excludedMethods);
$showPut = !in_array('put', $excludedMethods);
$showPatch = !in_array('patch', $excludedMethods);
$showGet = !in_array('get', $excludedMethods);
$showPost = !in_array('post', $excludedMethods);
$showPut = !in_array('put', $excludedMethods);
$showPatch = !in_array('patch', $excludedMethods);
$showDelete = !in_array('delete', $excludedMethods);
$showHead = !in_array('head', $excludedMethods);
$showHead = !in_array('head', $excludedMethods);

// Get a list of Doc with route and rules information.
$docs = $this->laravelRequestDocs->getDocs(
Expand Down

0 comments on commit 0b81e47

Please sign in to comment.