| @@ 222-229 (lines=8) @@ | ||
| 219 | { |
|
| 220 | // @group tag on the method overrides that on the controller |
|
| 221 | $docBlockComment = $method->getDocComment(); |
|
| 222 | if ($docBlockComment) { |
|
| 223 | $phpdoc = new DocBlock($docBlockComment); |
|
| 224 | foreach ($phpdoc->getTags() as $tag) { |
|
| 225 | if ($tag->getName() === 'group') { |
|
| 226 | return $tag->getContent(); |
|
| 227 | } |
|
| 228 | } |
|
| 229 | } |
|
| 230 | ||
| 231 | $docBlockComment = $controller->getDocComment(); |
|
| 232 | if ($docBlockComment) { |
|
| @@ 232-239 (lines=8) @@ | ||
| 229 | } |
|
| 230 | ||
| 231 | $docBlockComment = $controller->getDocComment(); |
|
| 232 | if ($docBlockComment) { |
|
| 233 | $phpdoc = new DocBlock($docBlockComment); |
|
| 234 | foreach ($phpdoc->getTags() as $tag) { |
|
| 235 | if ($tag->getName() === 'group') { |
|
| 236 | return $tag->getContent(); |
|
| 237 | } |
|
| 238 | } |
|
| 239 | } |
|
| 240 | ||
| 241 | return 'general'; |
|
| 242 | } |
|