Passed
Push — master ( 762047...d9abc4 )
by Andrea
19:59 queued 13s
created

FfprincipaleController::indexAction()   A

Complexity

Conditions 4
Paths 8

Size

Total Lines 58
Code Lines 41

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 41
CRAP Score 4.0002

Importance

Changes 0
Metric Value
dl 0
loc 58
ccs 41
cts 42
cp 0.9762
rs 9.0077
c 0
b 0
f 0
cc 4
eloc 41
nc 8
nop 1
crap 4.0002

How to fix   Long Method   

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
namespace Fi\CoreBundle\Controller;
4
5
/**
6
 * Ffprincipale controller.
7
 */
8
class FfprincipaleController extends FiCoreController
9
{
10
    
11
}
12