src/Controller/HomeController.php
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'];
$nbGroups = round($this->figuresRepository->countAll() / 15);