EventSituations   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 9
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A normalize() 0 7 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