Total Complexity | 4 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Coverage | 57.14% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class StringUtils |
||
6 | { |
||
7 | /** |
||
8 | * Translates a string with underscores into camel case (e.g. first_name -> firstName). |
||
9 | * |
||
10 | * @param array $parametri |
||
11 | * |
||
12 | * @return string $str translated into camel caps |
||
13 | */ |
||
14 | 3 | public static function toCamelCase($parametri = array()) |
|
27 | } |
||
28 | |||
29 | /** |
||
30 | * Transforms an under_scored_string to a camelCasedOne |
||
31 | */ |
||
32 | /*function camelize($scored) { |
||
33 | return lcfirst( |
||
34 | implode( |
||
35 | '', |
||
36 | array_map( |
||
37 | 'ucfirst', |
||
38 | array_map( |
||
39 | 'strtolower', |
||
40 | explode( |
||
41 | '_', $scored))))); |
||
42 | }*/ |
||
43 | |||
44 | /** |
||
45 | * Transforms a camelCasedString to an under_scored_one |
||
46 | */ |
||
47 | public static function underscore($cameled) |
||
58 |