| Total Complexity | 4 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 81.82% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class StringUtils |
||
| 8 | { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * Translates a string with underscores into camel case (e.g. first_name -> firstName). |
||
| 12 | * |
||
| 13 | * @param array<mixed> $parametri |
||
| 14 | * |
||
| 15 | * @return string $str translated into camel caps |
||
| 16 | */ |
||
| 17 | 3 | public static function toCamelCase($parametri = array()): string |
|
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Transforms a camelCasedString to an under_scored_one |
||
| 34 | */ |
||
| 35 | public static function underscore(string $cameled): string |
||
| 40 |