| @@ 230-237 (lines=8) @@ | ||
| 227 | { |
|
| 228 | // @group tag on the method overrides that on the controller |
|
| 229 | $docBlockComment = $method->getDocComment(); |
|
| 230 | if ($docBlockComment) { |
|
| 231 | $phpdoc = new DocBlock($docBlockComment); |
|
| 232 | foreach ($phpdoc->getTags() as $tag) { |
|
| 233 | if ($tag->getName() === 'group') { |
|
| 234 | return $tag->getContent(); |
|
| 235 | } |
|
| 236 | } |
|
| 237 | } |
|
| 238 | ||
| 239 | $docBlockComment = $controller->getDocComment(); |
|
| 240 | if ($docBlockComment) { |
|
| @@ 240-247 (lines=8) @@ | ||
| 237 | } |
|
| 238 | ||
| 239 | $docBlockComment = $controller->getDocComment(); |
|
| 240 | if ($docBlockComment) { |
|
| 241 | $phpdoc = new DocBlock($docBlockComment); |
|
| 242 | foreach ($phpdoc->getTags() as $tag) { |
|
| 243 | if ($tag->getName() === 'group') { |
|
| 244 | return $tag->getContent(); |
|
| 245 | } |
|
| 246 | } |
|
| 247 | } |
|
| 248 | ||
| 249 | return 'general'; |
|
| 250 | } |
|