| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | public static function studly($value) |
||
| 46 | { |
||
| 47 | $key = $value; |
||
| 48 | |||
| 49 | if (isset(static::$studlyCache[$key])) { |
||
| 50 | return static::$studlyCache[$key]; |
||
| 51 | } |
||
| 52 | |||
| 53 | $value = ucwords(str_replace(['-', '_'], ' ', $value)); |
||
| 54 | |||
| 55 | return static::$studlyCache[$key] = str_replace(' ', '', $value); |
||
| 56 | } |
||
| 74 |