Total Complexity | 6 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class Cleaner |
||
10 | { |
||
11 | |||
12 | const INT = '0-9'; |
||
13 | const FLOAT = self::INT . '\,\.'; |
||
14 | const CHARS_RUS = 'а-яё'; |
||
15 | const CHARS_ENG = 'a-z'; |
||
16 | const SUPER = '\*\#\ \n\r'; |
||
17 | |||
18 | private static function fixQuotes($value): string |
||
19 | { |
||
20 | return htmlspecialchars(addslashes($value), ENT_QUOTES); |
||
21 | } |
||
22 | |||
23 | private static function compileRegexp($line): string |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Cleanup the value |
||
30 | * |
||
31 | * @param string $value |
||
32 | * @param string $type |
||
33 | * @return mixed |
||
34 | */ |
||
35 | public static function run(string $value, string $type = null) |
||
58 | } |
||
59 | |||
61 |