Passed
Push — master ( 8c5427...866aa9 )
by Gabriel
02:10
created

DateTimePlus::__set()   B

Complexity

Conditions 10
Paths 10

Size

Total Lines 30
Code Lines 28

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 110

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 28
c 1
b 0
f 0
dl 0
loc 30
ccs 0
cts 28
cp 0
rs 7.6666
cc 10
nc 10
nop 2
crap 110

How to fix   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
namespace Nip\Utility;
4
5
use DateTime;
6
use InvalidArgumentException;
7
use Carbon\Carbon as BaseCarbon;
8
9
/**
10
 * Class DateTimePlus
11
 * @package Nip\Utility
12
 */
13
class DateTimePlus extends BaseCarbon
14
{
15
}
16