Completed
Push — work-fleets ( 0f036f...867546 )
by SuperNova.WS
06:49
created

V2UnitModel::__construct()   C

Complexity

Conditions 8
Paths 1

Size

Total Lines 71
Code Lines 46

Duplication

Lines 32
Ratio 45.07 %

Code Coverage

Tests 0
CRAP Score 72

Importance

Changes 4
Bugs 0 Features 1
Metric Value
cc 8
eloc 46
c 4
b 0
f 1
nc 1
nop 1
dl 32
loc 71
rs 6.4391
ccs 0
cts 58
cp 0
crap 72

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
 * Created by Gorlum 29.07.2016 13:18
4
 */
5
6
namespace V2Unit;
7
8
/**
9
 * Class V2UnitModel
10
 *
11
 * Second iteration of revised Unit
12
 *
13
 * @package V2Unit
14
 *
15
 */
16
class V2UnitModel extends \EntityModel {
17
18
}
19