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()
62
62
63
63
$ this ->generatePath ();
64
64
65
+ $ this ->addSummary ($ route ->getActionName ());
66
+
65
67
$ this ->addTags ($ route ->getAction ());
66
68
67
69
$ this ->addAuthParameters ($ route ->middleware ());
@@ -180,7 +182,9 @@ protected function getFormRules()
180
182
$ parameters = $ reflector ->getParameters ();
181
183
$ docComment = $ reflector ->getDocComment ();
182
184
183
- $ this ->addDescription ($ docComment );
185
+ if ($ docComment ) {
186
+ $ this ->addDescription ($ docComment );
187
+ }
184
188
185
189
foreach ($ parameters as $ parameter ) {
186
190
$ class = (string ) $ parameter ->getType ();
@@ -193,8 +197,8 @@ protected function getFormRules()
193
197
194
198
protected function addDescription ($ docComment )
195
199
{
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 ;
198
202
}
199
203
200
204
protected function getDescription ($ docComment )
You can’t perform that action at this time.
0 commit comments