Skip to content

Commit 4b821bf

Browse files
authored
Spell check done
1 parent e0afdc1 commit 4b821bf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/LaravelRequestDocs.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,13 @@ public function appendRequestRules(array $controllersInfo)
134134
//throw $th;
135135
}
136136

137-
foreach (config('request-docs.request_methods') as $rquestMethod) {
138-
if ($requestClass && method_exists($requestClass, $rquestMethod)) {
137+
foreach (config('request-docs.request_methods') as $requestMethod) {
138+
if ($requestClass && method_exists($requestClass, $requestMethod)) {
139139
try {
140-
$controllersInfo[$index]['rules'] = array_merge($controllersInfo[$index]['rules'], $this->flattenRules($requestClass->$rquestMethod()));
140+
$controllersInfo[$index]['rules'] = array_merge($controllersInfo[$index]['rules'], $this->flattenRules($requestClass->$requestMethod()));
141141

142142
} catch (Throwable $e) {
143-
$controllersInfo[$index]['rules'] = array_merge($controllersInfo[$index]['rules'], $this->rulesByRegex($requestClassName, $rquestMethod));
143+
$controllersInfo[$index]['rules'] = array_merge($controllersInfo[$index]['rules'], $this->rulesByRegex($requestClassName, $requestMethod));
144144
if (config('request-docs.debug')) {
145145
throw $e;
146146
}

0 commit comments

Comments
 (0)