Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Tools/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ public function processRoute(Route $route, array $rulesToApply = [])
$controller = new ReflectionClass($class);
$method = $controller->getMethod($method);


$docBlock = $this->parseDocBlock($method);
list($routeGroupName, $routeGroupDescription, $routeTitle) = $this->getRouteGroup($controller, $docBlock);
$bodyParameters = $this->getBodyParameters($method, $docBlock['tags']);
Expand Down Expand Up @@ -278,7 +277,7 @@ protected function parseDocBlock(ReflectionMethod $method)
protected function getRouteGroup(ReflectionClass $controller, array $methodDocBlock)
{
// @group tag on the method overrides that on the controller
if (!empty($methodDocBlock['tags'])) {
if (! empty($methodDocBlock['tags'])) {
foreach ($methodDocBlock['tags'] as $tag) {
if ($tag->getName() === 'group') {
$routeGroupParts = explode("\n", trim($tag->getContent()));
Expand All @@ -304,6 +303,7 @@ protected function getRouteGroup(ReflectionClass $controller, array $methodDocBl
if (empty($methodDocBlock['short'])) {
return [$routeGroupName, '', $routeGroupDescription];
}

return [$routeGroupName, $routeGroupDescription, $methodDocBlock['short']];
}
}
Expand Down
1 change: 0 additions & 1 deletion tests/Fixtures/TestController.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ public function withGroupOverride3()
* @group Group C
*
* Group description after group.
*
*/
public function withGroupOverride4()
{
Expand Down