Completed
Push — master ( 07e137...a910cc )
by Hannes
01:42
created

Formats::createFormats()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 397
Code Lines 262

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 253
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 397
ccs 253
cts 253
cp 1
rs 8.2857
c 0
b 0
f 0
cc 1
eloc 262
nc 1
nop 0
crap 1

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 byrokrat\banking;
4
5
/**
6
 * @deprecated Use FormatFactory instead
7
 * @codeCoverageIgnore
8
 */
9
class Formats extends FormatFactory
10
{
11
    public function __construct()
12
    {
13
        trigger_error("Use of the Formats class is deprecated, use FormatFactory instead", E_USER_DEPRECATED);
14
    }
15
}
16