Skip to content

Commit abe81c5

Browse files
author
Vignesh C
committed
summary add bug fix
1 parent 1adc392 commit abe81c5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/Generator.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ public function generate()
6262

6363
$this->generatePath();
6464

65+
$this->addSummary($route->getActionName());
66+
6567
$this->addTags($route->getAction());
6668

6769
$this->addAuthParameters($route->middleware());
@@ -180,7 +182,9 @@ protected function getFormRules()
180182
$parameters = $reflector->getParameters();
181183
$docComment = $reflector->getDocComment();
182184

183-
$this->addDescription($docComment);
185+
if($docComment) {
186+
$this->addDescription($docComment);
187+
}
184188

185189
foreach ($parameters as $parameter) {
186190
$class = (string) $parameter->getType();
@@ -193,8 +197,8 @@ protected function getFormRules()
193197

194198
protected function addDescription($docComment)
195199
{
196-
$docDomment = $this->getDescription($docComment);
197-
$this->docs['paths'][$this->uri][$this->method]['description'] = $docDomment;
200+
$docComment = $this->getDescription($docComment);
201+
$this->docs['paths'][$this->uri][$this->method]['description'] = $docComment;
198202
}
199203

200204
protected function getDescription($docComment)

0 commit comments

Comments
 (0)