EventSituations::normalize()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 7
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 2
crap 2
1
<?php
2
3
namespace Imanghafoori\HeyMan\Plugins\WatchingStrategies\Events;
4
5
final class EventSituations
6
{
7 11
    public function normalize($method, $name)
8
    {
9 11
        if ($method == 'whenYouReachCheckPoint') {
10 1
            $name[0] = 'heyman_checkpoint_'.$name[0];
11
        }
12
13 11
        return [$name];
14
    }
15
}
16