Passed
Push — master ( 99eb02...369f6b )
by Iman
02:44
created

EventSituations   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 15
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\WatchingStrategies\Events;
4
5
final class EventSituations
6
{
7
    /**
8
     * @param $method
9
     * @param $name
10
     *
11
     * @return mixed
12
     */
13 11
    public function normalize($method, $name)
14
    {
15 11
        if ($method == 'whenYouReachCheckPoint') {
16 1
            $name[0] = 'heyman_checkpoint_'.$name[0];
17
        }
18
19 11
        return [$name];
20
    }
21
}
22