Skip to content

Commit 0b81e47

Browse files
lint fix and change log
1 parent 649bdfd commit 0b81e47

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ Fixing lints
230230
- v2.14 Adds path params support
231231
- v2.16 Top Navbar is fixed
232232
- v2.19 Publish _astro assets
233+
- v2.20 `laravel-request-docs:export` command to export
233234
234235
235236
# Contributors

src/Commands/ExportRequestDocsCommand.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function __construct(LaravelRequestDocs $laravelRequestDoc, LaravelReques
1818
{
1919
parent::__construct();
2020

21-
$this->laravelRequestDocs = $laravelRequestDoc;
21+
$this->laravelRequestDocs = $laravelRequestDoc;
2222
$this->laravelRequestDocsToOpenApi = $laravelRequestDocsToOpenApi;
2323
}
2424

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

5858
//filter while method apis to export
59-
$showGet = !in_array('get', $excludedMethods);
60-
$showPost = !in_array('post', $excludedMethods);
61-
$showPut = !in_array('put', $excludedMethods);
62-
$showPatch = !in_array('patch', $excludedMethods);
59+
$showGet = !in_array('get', $excludedMethods);
60+
$showPost = !in_array('post', $excludedMethods);
61+
$showPut = !in_array('put', $excludedMethods);
62+
$showPatch = !in_array('patch', $excludedMethods);
6363
$showDelete = !in_array('delete', $excludedMethods);
64-
$showHead = !in_array('head', $excludedMethods);
64+
$showHead = !in_array('head', $excludedMethods);
6565

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

0 commit comments

Comments
 (0)