thomas-claireau/PHP-P6-Openclassrooms

View on GitHub
src/Controller/HomeController.php

Summary

Maintainability
A
1 hr
Test Coverage

Method ajaxLoadItems has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function ajaxLoadItems(Request $request)
    {
        $params = $request->attributes->get('_route_params');
        $index = (int) $params['index'];
        $nbGroups = round($this->figuresRepository->countAll() / 15);
Severity: Minor
Found in src/Controller/HomeController.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status