src/Controller/FigureController.php
Method show
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function show(Figures $figure, string $slug, Request $request): Response
{
$user = $this->getUser();
$comments = $this->commentRepository->findItems(1, $figure->getId());
$nbGroups = round($this->commentRepository->countAll($figure->getId()) / 10);
Method ajaxLoadItems
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function ajaxLoadItems(Request $request)
{
$params = $request->attributes->get('_route_params');
$index = (int) $params['index'];
$idFigure = $params['id'];