Skip to content

Commit 2013fd3

Browse files
CI fixes
1 parent 6202f43 commit 2013fd3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

config/request-docs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Route where request docs will be served from
1111
* localhost:8080/request-docs
1212
*/
13-
'url' => 'api-docs',
13+
'url' => 'request-docs',
1414
'middlewares' => [
1515
//Example
1616
// \App\Http\Middleware\NotFoundWhenProduction::class,

src/LaravelRequestDocs.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function sortDocs(array $docs, $sortBy = 'default'): array
5353
foreach ($methods as $method) {
5454
foreach ($docs as $key => $doc) {
5555
if (in_array($method, $doc['methods'])) {
56-
if (!in_array($doc, $sorted)){
56+
if (!in_array($doc, $sorted)) {
5757
$sorted[] = $doc;
5858
}
5959
}
@@ -140,7 +140,6 @@ public function appendRequestRules(array $controllersInfo)
140140
if ($requestClass && method_exists($requestClass, $requestMethod)) {
141141
try {
142142
$controllersInfo[$index]['rules'] = array_merge($controllersInfo[$index]['rules'], $this->flattenRules($requestClass->$requestMethod()));
143-
144143
} catch (Throwable $e) {
145144
$controllersInfo[$index]['rules'] = array_merge($controllersInfo[$index]['rules'], $this->rulesByRegex($requestClassName, $requestMethod));
146145
if (config('request-docs.debug')) {

0 commit comments

Comments
 (0)