| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 49 | public static function className($str) |
||
| 50 | { |
||
| 51 | if (! isset(static::$cache['className'][$str])) { |
||
| 52 | $str = strtolower($str); |
||
| 53 | $str = preg_replace("/[^a-z0-9]+/", ' ', $str); |
||
| 54 | $str = ucwords($str); |
||
| 55 | |||
| 56 | static::$cache['className'][$str] = str_replace(' ', '', $str); |
||
| 57 | } |
||
| 58 | |||
| 59 | return static::$cache['className'][$str]; |
||
| 60 | } |
||
| 62 |