diff --git a/src/Extracting/Strategies/Metadata/GetFromDocBlocks.php b/src/Extracting/Strategies/Metadata/GetFromDocBlocks.php index d7c39d74..1c4c0b73 100644 --- a/src/Extracting/Strategies/Metadata/GetFromDocBlocks.php +++ b/src/Extracting/Strategies/Metadata/GetFromDocBlocks.php @@ -21,11 +21,11 @@ public function __invoke(Route $route, ReflectionClass $controller, ReflectionMe list($routeGroupName, $routeGroupDescription, $routeTitle) = $this->getRouteGroupDescriptionAndTitle($methodDocBlock, $docBlocks['class']); return [ - 'groupName' => $routeGroupName, - 'groupDescription' => $routeGroupDescription, - 'title' => $routeTitle ?: $methodDocBlock->getShortDescription(), - 'description' => $methodDocBlock->getLongDescription()->getContents(), - 'authenticated' => $this->getAuthStatusFromDocBlock($methodDocBlock->getTags()), + 'groupName' => $routeGroupName, + 'groupDescription' => $routeGroupDescription, + 'title' => $routeTitle ?: $methodDocBlock->getShortDescription(), + 'description' => $methodDocBlock->getLongDescription()->getContents(), + 'authenticated' => $this->getAuthStatusFromDocBlock($methodDocBlock->getTags()), ]; } diff --git a/tests/Unit/GeneratorTestCase.php b/tests/Unit/GeneratorTestCase.php index b3d09776..70e631a0 100644 --- a/tests/Unit/GeneratorTestCase.php +++ b/tests/Unit/GeneratorTestCase.php @@ -467,21 +467,21 @@ public function can_parse_apiresourcecollection_tags_with_collection_class() $content = json_decode($response['content'], true); $this->assertIsArray($content); $this->assertArraySubset([ - 'data' => [ - [ - 'id' => 4, - 'name' => 'Tested Again', - 'email' => 'a@b.com', - ], - [ - 'id' => 4, - 'name' => 'Tested Again', - 'email' => 'a@b.com', - ], + 'data' => [ + [ + 'id' => 4, + 'name' => 'Tested Again', + 'email' => 'a@b.com', ], - 'links' => [ - 'self' => 'link-value', + [ + 'id' => 4, + 'name' => 'Tested Again', + 'email' => 'a@b.com', ], + ], + 'links' => [ + 'self' => 'link-value', + ], ], $content); }