| Total Complexity | 2 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 7 | final class Sanitizer |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @param string $styles |
||
| 11 | * |
||
| 12 | * @return string |
||
| 13 | * |
||
| 14 | * @see https://www.regextester.com/94246 Adapted from |
||
| 15 | */ |
||
| 16 | public static function sanitizeStyles(string $styles): string |
||
| 27 | ); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param string $elementName |
||
| 32 | * |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | public static function sanitizeElementName(string $elementName): string |
||
| 40 |