Total Complexity | 5 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
10 | class HeyMan |
||
11 | { |
||
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 | 67 | public function __construct(Chain $chain) |
|
23 | { |
||
24 | 67 | $this->chain = $chain; |
|
25 | 67 | } |
|
26 | |||
27 | /** |
||
28 | * @param $url |
||
29 | * |
||
30 | * @return array |
||
31 | */ |
||
32 | 65 | private function normalizeInput(array $url): array |
|
|
|||
33 | { |
||
34 | 65 | return is_array($url[0]) ? $url[0] : $url; |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * @param $value |
||
39 | * |
||
40 | * @return YouShouldHave |
||
41 | */ |
||
42 | 17 | private function authorize($value): YouShouldHave |
|
47 | } |
||
48 | |||
49 | 56 | public function startListening() |
|
55 |
This check looks for private methods that have been defined, but are not used inside the class.