Skip to content

Commit 88f556c

Browse files
authored
Merge pull request #708 from mpociot/analysis-jLJo39
Apply fixes from StyleCI
2 parents dc87dd2 + f32a949 commit 88f556c

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

src/Extracting/Strategies/Metadata/GetFromDocBlocks.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ public function __invoke(Route $route, ReflectionClass $controller, ReflectionMe
2121
list($routeGroupName, $routeGroupDescription, $routeTitle) = $this->getRouteGroupDescriptionAndTitle($methodDocBlock, $docBlocks['class']);
2222

2323
return [
24-
'groupName' => $routeGroupName,
25-
'groupDescription' => $routeGroupDescription,
26-
'title' => $routeTitle ?: $methodDocBlock->getShortDescription(),
27-
'description' => $methodDocBlock->getLongDescription()->getContents(),
28-
'authenticated' => $this->getAuthStatusFromDocBlock($methodDocBlock->getTags()),
24+
'groupName' => $routeGroupName,
25+
'groupDescription' => $routeGroupDescription,
26+
'title' => $routeTitle ?: $methodDocBlock->getShortDescription(),
27+
'description' => $methodDocBlock->getLongDescription()->getContents(),
28+
'authenticated' => $this->getAuthStatusFromDocBlock($methodDocBlock->getTags()),
2929
];
3030
}
3131

tests/Unit/GeneratorTestCase.php

+13-13
Original file line numberDiff line numberDiff line change
@@ -467,21 +467,21 @@ public function can_parse_apiresourcecollection_tags_with_collection_class()
467467
$content = json_decode($response['content'], true);
468468
$this->assertIsArray($content);
469469
$this->assertArraySubset([
470-
'data' => [
471-
[
472-
'id' => 4,
473-
'name' => 'Tested Again',
474-
'email' => '[email protected]',
475-
],
476-
[
477-
'id' => 4,
478-
'name' => 'Tested Again',
479-
'email' => '[email protected]',
480-
],
470+
'data' => [
471+
[
472+
'id' => 4,
473+
'name' => 'Tested Again',
474+
'email' => '[email protected]',
481475
],
482-
'links' => [
483-
'self' => 'link-value',
476+
[
477+
'id' => 4,
478+
'name' => 'Tested Again',
479+
'email' => '[email protected]',
484480
],
481+
],
482+
'links' => [
483+
'self' => 'link-value',
484+
],
485485
], $content);
486486
}
487487

0 commit comments

Comments
 (0)