Skip to content

Conversation

@KamiYang
Copy link
Member

No description provided.

}
}

return new JsonResponse($templateData, $statusCode);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Returning type \TYPO3\CMS\Core\Http\JsonResponse but getData() is declared to return \Psr\Http\Message\ResponseInterface

{
use LoggerAwareTrait;

public function getData(ServerRequestInterface $request): JsonResponse

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function getData has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.

@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit 3e58ff6 and detected 6 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 2
Duplication 2
Bug Risk 2

The test coverage on the diff in this pull request is 81.2% (50% is the threshold).

This pull request will bring the total coverage in the repository to 94.3% (-5.7% change).

View more on Code Climate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants