| Total Complexity | 3 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 14 | class Inflector |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * StuldyCase. |
||
| 18 | * |
||
| 19 | * @param string $path |
||
| 20 | * |
||
| 21 | * @return string |
||
| 22 | */ |
||
| 23 | public function stuldyCase(string $string): string |
||
| 24 | { |
||
| 25 | return str_replace(' ', '', ucwords(str_replace(['-', '_'], ' ', $string))); |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Separate words. |
||
| 30 | * |
||
| 31 | * @param string $path |
||
| 32 | * |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | public function words(string $string): string |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Snakeize. |
||
| 42 | * |
||
| 43 | * @param string $path |
||
| 44 | * |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | public function snakeCase(string $string): string |
||
| 52 | } |
||
| 53 | } |
||
| 54 |