Total Complexity | 2 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class Inflector |
||
10 | { |
||
11 | /** |
||
12 | * Converts a CamelCase name into space-separated words. |
||
13 | * For example, 'PostTag' will be converted to 'Post Tag'. |
||
14 | * @param string $name the string to be converted |
||
15 | * @param bool $ucwords whether to capitalize the first letter in each word |
||
16 | * @return string the resulting words |
||
17 | */ |
||
18 | public static function camel2words($name, $ucwords = true) |
||
29 |