Code Duplication    Length = 4-5 lines in 2 locations

src/Russian/Plurality.php 1 location

@@ 85-88 (lines=4) @@
82
83
		if ($last == 'ч' || slice($word, -2) == 'чь' || ($this->isVowel($last) && in_array(slice($word, -2, -1), array('ч', 'к')))) // before ч, чь, ч+vowel, к+vowel
84
			$forms[Cases::IMENIT] = $prefix.'и';
85
		else if ($last == 'н')
86
			$forms[Cases::IMENIT] = $prefix.'ы';
87
		else
88
			$forms[Cases::IMENIT] = $this->chooseVowelAfterConsonant($last, $soft_last, $prefix.'я', $prefix.'а');
89
90
91
		// RODIT

src/Russian/GeneralDeclension.php 1 location

@@ 129-133 (lines=5) @@
126
		$forms[Cases::VINIT] = $this->chooseVowelAfterConsonant($last, $soft_last && slice($word, -2, -1) != 'ч', $prefix.'ю', $prefix.'у');
127
128
		// TVORIT
129
		if ($last == 'ь')
130
			$forms[Cases::TVORIT] = $prefix.'ой';
131
		else {
132
			$forms[Cases::TVORIT] = $this->chooseVowelAfterConsonant($last, $soft_last, $prefix.'ей', $prefix.'ой');
133
		}
134
135
		// 	if ($last == 'й' || (self::isConsonant($last) && !RussianLanguage::isHissingConsonant($last)) || $this->checkLastConsonantSoftness($word))
136
		// 	$forms[Cases::TVORIT] = $prefix.'ей';