| @@ 284-291 (lines=8) @@ | ||
| 281 | { |
|
| 282 | // @group tag on the method overrides that on the controller |
|
| 283 | $docBlockComment = $method->getDocComment(); |
|
| 284 | if ($docBlockComment) { |
|
| 285 | $phpdoc = new DocBlock($docBlockComment); |
|
| 286 | foreach ($phpdoc->getTags() as $tag) { |
|
| 287 | if ($tag->getName() === 'group') { |
|
| 288 | return $tag->getContent(); |
|
| 289 | } |
|
| 290 | } |
|
| 291 | } |
|
| 292 | ||
| 293 | $docBlockComment = $controller->getDocComment(); |
|
| 294 | if ($docBlockComment) { |
|
| @@ 294-301 (lines=8) @@ | ||
| 291 | } |
|
| 292 | ||
| 293 | $docBlockComment = $controller->getDocComment(); |
|
| 294 | if ($docBlockComment) { |
|
| 295 | $phpdoc = new DocBlock($docBlockComment); |
|
| 296 | foreach ($phpdoc->getTags() as $tag) { |
|
| 297 | if ($tag->getName() === 'group') { |
|
| 298 | return $tag->getContent(); |
|
| 299 | } |
|
| 300 | } |
|
| 301 | } |
|
| 302 | ||
| 303 | return config('apidoc.default_group', 'general'); |
|
| 304 | } |
|