| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public static function toCamelCase(string $string, array $noStrip = []): string |
||
| 19 | { |
||
| 20 | $string = preg_replace('/[^a-z0-9' . implode('', $noStrip) . ']+/i', ' ', $string); |
||
| 21 | $string = trim($string); |
||
| 22 | $string = ucwords($string); |
||
| 23 | $string = str_replace(" ", "", $string); |
||
| 24 | $string = lcfirst($string); |
||
| 25 | |||
| 26 | return $string; |
||
| 27 | } |
||
| 45 |