Total Complexity | 7 |
Total Lines | 57 |
Duplicated Lines | 0 % |
Coverage | 75% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class NameFormatter |
||
10 | { |
||
11 | /** |
||
12 | * @param $module |
||
13 | * @param $controller |
||
14 | * @param $action |
||
15 | * @return array |
||
16 | */ |
||
17 | public static function formatArray($module, $controller, $action) |
||
23 | ]; |
||
24 | } |
||
25 | /** |
||
26 | * @param string $name |
||
27 | * @return mixed |
||
28 | */ |
||
29 | 4 | public static function formatModuleName($name) |
|
34 | } |
||
35 | |||
36 | /** |
||
37 | * @param string $name |
||
38 | * @return mixed |
||
39 | */ |
||
40 | 4 | public static function formatControllerName($name) |
|
45 | } |
||
46 | |||
47 | /** |
||
48 | * @param $controller |
||
49 | * @return mixed |
||
50 | */ |
||
51 | 4 | protected static function getControllerName($controller) |
|
52 | { |
||
53 | 4 | return inflector()->classify($controller); |
|
54 | } |
||
55 | |||
56 | /** |
||
57 | * @param boolean $name |
||
58 | * @return mixed |
||
59 | */ |
||
60 | 3 | public static function formatActionName($name) |
|
66 | } |
||
67 | } |
||
68 |