Passed
Push — master ( 9cafe4...e7f2a1 )
by Julito
09:04
created

AdminController::loadAdminMenu()   F

Complexity

Conditions 13
Paths 486

Size

Total Lines 438
Code Lines 289

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 13
eloc 289
c 0
b 0
f 0
nc 486
nop 0
dl 0
loc 438
rs 2.5311

How to fix   Long Method    Complexity   

Long Method

Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.

For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.

Commonly applied refactorings include:

1
<?php
2
3
declare(strict_types=1);
4
5
/* For licensing terms, see /license.txt */
6
7
namespace Chamilo\CoreBundle\Controller\Admin;
8
9
use Chamilo\CoreBundle\Controller\BaseController;
10
use Symfony\Component\Routing\Annotation\Route;
11
12
#[Route('/admin')]
13
class AdminController extends BaseController
14
{
15
}
16