| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 101 | public static function transliterate(string $russianText): string |
||
| 102 | { |
||
| 103 | $transliteratedText = ''; |
||
| 104 | |||
| 105 | if ('' !== $russianText) { |
||
| 106 | $transliteratedText = \str_replace( |
||
| 107 | \array_keys(self::RUSSIAN_TO_ENGLISH_RULES), |
||
| 108 | \array_values(self::RUSSIAN_TO_ENGLISH_RULES), |
||
| 109 | $russianText |
||
| 110 | ); |
||
| 111 | } |
||
| 112 | |||
| 113 | return $transliteratedText; |
||
| 114 | } |
||
| 115 | } |
||
| 116 |