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

Database::endMigration()   B

Complexity

Conditions 5
Paths 4

Size

Total Lines 52
Code Lines 27

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 19
CRAP Score 6.2327

Importance

Changes 0
Metric Value
dl 0
loc 52
ccs 19
cts 30
cp 0.6333
rs 8.6868
c 0
b 0
f 0
cc 5
eloc 27
nc 4
nop 2
crap 6.2327

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
}