Skip to content

Commit

Permalink
Merge pull request #566 from mpociot/analysis-8QVbOg
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
mpociot authored Aug 31, 2019
2 parents 5647eda + 77ed994 commit 666e3c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
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

0 comments on commit 666e3c8

Please sign in to comment.