Passed
Push — dev ( be1bbd...5e7812 )
by Nico
05:18
created

RefactorRunner::migrateAllianceJobSystem()   C

Complexity

Conditions 12
Paths 66

Size

Total Lines 119
Code Lines 76

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 156

Importance

Changes 0
Metric Value
cc 12
eloc 76
nc 66
nop 0
dl 0
loc 119
ccs 0
cts 79
cp 0
crap 156
rs 6.0969
c 0
b 0
f 0

How to fix   Long Method    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
declare(strict_types=1);
4
5
namespace Stu\Component\Refactor;
6
7
8
final class RefactorRunner
9
{
10
    public function refactor(): void
11
    {
12
        // nothing to do
13
    }
14
}
15