Code Duplication    Length = 3-3 lines in 2 locations

src/Russian/NounDeclension.php 1 location

@@ 293-295 (lines=3) @@
290
            || (in_array($last, ['ь', 'е', 'ё', 'ю', 'я'], true) && static::isHissingConsonant(S::slice($word, -2, -1)))
291
            || ($last === 'ц' && S::slice($word, -2) !== 'ец')) {
292
            $forms[Cases::TVORIT] = $prefix.'ем';
293
        } elseif (in_array($last, ['й'/*, 'ч', 'щ'*/], true) || $soft_last) {
294
            $forms[Cases::TVORIT] = $prefix.'ем';
295
        } else {
296
            $forms[Cases::TVORIT] = $prefix.'ом';
297
        }
298

src/Russian/NounPluralization.php 1 location

@@ 239-241 (lines=3) @@
236
            }
237
        } elseif (in_array($last, ['а'], true)) { // обида, ябеда
238
            $forms[Cases::RODIT] = $prefix;
239
        } elseif (in_array($last, ['я'], true)) { // молния
240
            $forms[Cases::RODIT] = $prefix.'й';
241
        } elseif (RussianLanguage::isHissingConsonant($last) || ($soft_last && $last != 'й') || in_array(S::slice($word, -2), ['чь', 'сь', 'ть', 'нь'], true)) {
242
            $forms[Cases::RODIT] = $prefix.'ей';
243
        } elseif ($last == 'й' || S::slice($word, -2) == 'яц') { // месяц
244
            $forms[Cases::RODIT] = $prefix.'ев';