Total Complexity | 6 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Coverage | 83.33% |
Changes | 0 |
1 | <?php |
||
11 | class HeyMan |
||
12 | { |
||
13 | use EloquentHooks, RouteHooks, ViewHooks, EventHooks; |
||
14 | |||
15 | private $chain; |
||
16 | |||
17 | /** |
||
18 | * HeyMan constructor. |
||
19 | * |
||
20 | * @param \Imanghafoori\HeyMan\Chain $chain |
||
21 | */ |
||
22 | 77 | public function __construct(Chain $chain) |
|
23 | { |
||
24 | 77 | $this->chain = $chain; |
|
25 | 77 | } |
|
26 | |||
27 | /** |
||
28 | * @param $url |
||
29 | * |
||
30 | * @return array |
||
31 | */ |
||
32 | 77 | private function normalizeInput(array $url): array |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * @param $eventName |
||
39 | * |
||
40 | * @return YouShouldHave |
||
41 | */ |
||
42 | 5 | private function holdWhen($eventName): YouShouldHave |
|
47 | } |
||
48 | |||
49 | 11 | public function turnOff(): Consider |
|
50 | { |
||
51 | 11 | return new Consider('turnOff'); |
|
52 | } |
||
53 | |||
54 | public function turnOn(): Consider |
||
57 | } |
||
58 | } |
||
59 |
This check looks for private methods that have been defined, but are not used inside the class.