Skip to content

Commit 666e3c8

Browse files
authored
Merge pull request #566 from mpociot/analysis-8QVbOg
Apply fixes from StyleCI
2 parents 5647eda + 77ed994 commit 666e3c8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Tools/Generator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ public function processRoute(Route $route, array $rulesToApply = [])
5757
$controller = new ReflectionClass($class);
5858
$method = $controller->getMethod($method);
5959

60-
6160
$docBlock = $this->parseDocBlock($method);
6261
list($routeGroupName, $routeGroupDescription, $routeTitle) = $this->getRouteGroup($controller, $docBlock);
6362
$bodyParameters = $this->getBodyParameters($method, $docBlock['tags']);
@@ -278,7 +277,7 @@ protected function parseDocBlock(ReflectionMethod $method)
278277
protected function getRouteGroup(ReflectionClass $controller, array $methodDocBlock)
279278
{
280279
// @group tag on the method overrides that on the controller
281-
if (!empty($methodDocBlock['tags'])) {
280+
if (! empty($methodDocBlock['tags'])) {
282281
foreach ($methodDocBlock['tags'] as $tag) {
283282
if ($tag->getName() === 'group') {
284283
$routeGroupParts = explode("\n", trim($tag->getContent()));
@@ -304,6 +303,7 @@ protected function getRouteGroup(ReflectionClass $controller, array $methodDocBl
304303
if (empty($methodDocBlock['short'])) {
305304
return [$routeGroupName, '', $routeGroupDescription];
306305
}
306+
307307
return [$routeGroupName, $routeGroupDescription, $methodDocBlock['short']];
308308
}
309309
}

tests/Fixtures/TestController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ public function withGroupOverride3()
5959
* @group Group C
6060
*
6161
* Group description after group.
62-
*
6362
*/
6463
public function withGroupOverride4()
6564
{

0 commit comments

Comments
 (0)