File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments