Code Duplication    Length = 2-5 lines in 2 locations

src/Russian/RussianLanguage.php 2 locations

@@ 185-189 (lines=5) @@
182
     */
183
    public static function choosePrepositionByFirstLetter($word, $prepositionWithVowel, $preposition)
184
    {
185
        if (in_array(S::lower(S::slice($word, 0, 1)), ['а', 'о', 'и', 'у', 'э'], true)) {
186
            return $prepositionWithVowel;
187
        } else {
188
            return $preposition;
189
        }
190
    }
191
192
    /**
@@ 270-271 (lines=2) @@
267
        if (static::isVowel(S::slice($normalized, 0, 1)) && !in_array(S::slice($normalized, 0, 1), ['е', 'ё', 'ю', 'я'], true))
268
            return 'об '.$word;
269
270
        if (in_array(S::slice($normalized, 0, 3), ['все', 'всё', 'всю', 'что', 'мне'], true))
271
            return 'обо '.$word;
272
273
        return 'о '.$word;
274
    }