@@ 280-287 (lines=8) @@ | ||
277 | { |
|
278 | // @group tag on the method overrides that on the controller |
|
279 | $docBlockComment = $method->getDocComment(); |
|
280 | if ($docBlockComment) { |
|
281 | $phpdoc = new DocBlock($docBlockComment); |
|
282 | foreach ($phpdoc->getTags() as $tag) { |
|
283 | if ($tag->getName() === 'group') { |
|
284 | return $tag->getContent(); |
|
285 | } |
|
286 | } |
|
287 | } |
|
288 | ||
289 | $docBlockComment = $controller->getDocComment(); |
|
290 | if ($docBlockComment) { |
|
@@ 290-297 (lines=8) @@ | ||
287 | } |
|
288 | ||
289 | $docBlockComment = $controller->getDocComment(); |
|
290 | if ($docBlockComment) { |
|
291 | $phpdoc = new DocBlock($docBlockComment); |
|
292 | foreach ($phpdoc->getTags() as $tag) { |
|
293 | if ($tag->getName() === 'group') { |
|
294 | return $tag->getContent(); |
|
295 | } |
|
296 | } |
|
297 | } |
|
298 | ||
299 | // TODO: get rid of ungrouped_name in next major release |
|
300 | return config('apidoc.default_group', config('apidoc.ungrouped_name', 'general')); |