| Total Complexity | 4 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 92.31% |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 5 | class SanitizeUserName extends StringSanitizer |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * \p{L} = any kind of letter from any language. |
||
| 9 | * \p{M} = any character intended to be combined with another character (e.g. accents, umlauts, enclosing boxes, etc.). |
||
| 10 | * \p{N} = any kind of numeric character in any script. |
||
| 11 | * \p{Pf} = any kind of closing quote. |
||
| 12 | * @see https://www.regular-expressions.info/unicode.html |
||
| 13 | */ |
||
| 14 | 26 | public function run(): string |
|
| 33 |