Completed
Push — master ( ac3b8b...3c857d )
by Gaetano
18:21
created

Database::createMigration()   C

Complexity

Conditions 7
Paths 5

Size

Total Lines 78
Code Lines 45

Duplication

Lines 15
Ratio 19.23 %

Code Coverage

Tests 37
CRAP Score 7.0066

Importance

Changes 0
Metric Value
dl 15
loc 78
ccs 37
cts 39
cp 0.9487
rs 6.5702
c 0
b 0
f 0
cc 7
eloc 45
nc 5
nop 3
crap 7.0066

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 Kaliop\eZMigrationBundle\Core\StorageHandler;
4
5
use Kaliop\eZMigrationBundle\Core\StorageHandler\Database\Migration;
6
7
/**
8
 * @deprecated Left in for backwards compatibility only
9
 */
10
class Database extends Migration
11
{
12
}