File tree 1 file changed +12
-10
lines changed
1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -187,18 +187,20 @@ private function isRouteVisibleForDocumentation(array $routeControllerAndMethod)
187
187
[$ class , $ method ] = $ routeControllerAndMethod ;
188
188
$ reflection = new ReflectionClass ($ class );
189
189
190
- $ comment = $ reflection ->getMethod ($ method )->getDocComment ();
191
-
192
- if ($ comment ) {
190
+ $ tags = collect ();
191
+
192
+ foreach (
193
+ array_filter ([
194
+ $ reflection ->getDocComment (),
195
+ $ reflection ->getMethod ($ method )->getDocComment ()
196
+ ]) as $ comment
197
+ ) {
193
198
$ phpdoc = new DocBlock ($ comment );
194
-
195
- return collect ($ phpdoc ->getTags ())
196
- ->filter (function ($ tag ) {
197
- return $ tag ->getName () === 'hideFromAPIDocumentation ' ;
198
- })
199
- ->isEmpty ();
199
+ $ tags = $ tags ->concat ($ phpdoc ->getTags ());
200
200
}
201
201
202
- return true ;
202
+ return $ tags ->filter (function ($ tag ) {
203
+ return $ tag ->getName () === 'hideFromAPIDocumentation ' ;
204
+ })->isEmpty ();
203
205
}
204
206
}
You can’t perform that action at this time.
0 commit comments