| Total Complexity | 3 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class CleanUserNames implements CleanUserNamesInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Strip numbers and '-_' chars from around a usename. |
||
| 14 | * |
||
| 15 | * * __php-33_ => php |
||
| 16 | * * __php_hello => php_hello |
||
| 17 | * |
||
| 18 | * @param string $username string to trim down |
||
| 19 | * |
||
| 20 | * @return string 'clean' username without some chars around the first 'word' |
||
| 21 | */ |
||
| 22 | public function clean($username) |
||
| 37 |