Total Complexity | 4 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class Ascii |
||
6 | { |
||
7 | /** |
||
8 | * @param string $stringToCheck |
||
9 | * @return bool |
||
10 | */ |
||
11 | public static function isValid(string $stringToCheck): bool |
||
14 | } |
||
15 | |||
16 | /** |
||
17 | * @return bool |
||
18 | */ |
||
19 | private static function existsTransliterableChars(string $stringToCheck): bool |
||
20 | { |
||
21 | return !preg_match('@^[a-zA-Z0-9\s\p{P}\p{S}]+$@u', $stringToCheck); |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @param string $stringToTransliterate |
||
26 | * @return string |
||
27 | */ |
||
28 | public static function transliterate(string $stringToTransliterate): string |
||
35 | } |
||
36 | } |
||
37 |