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