Code Duplication    Length = 15-16 lines in 2 locations

languages/classes/LanguageKk_cyrl.php 1 location

@@ 759-773 (lines=15) @@
756
757
		// Find the last vowel in the word
758
		$lastLetter[1] = null;
759
		foreach ( $wordReversed as $xvalue ) {
760
			foreach ( $allVowels as $yvalue ) {
761
				if ( strcmp( $xvalue, $yvalue ) == 0 ) {
762
					$lastLetter[1] = $xvalue;
763
					break;
764
				} else {
765
					continue;
766
				}
767
			}
768
			if ( $lastLetter[1] !== null ) {
769
				break;
770
			} else {
771
				continue;
772
			}
773
		}
774
775
		return $lastLetter;
776
	}

languages/classes/LanguageTyv.php 1 location

@@ 70-85 (lines=16) @@
67
68
		// Find the last vowel in the word
69
		$wordLastVowel = null;
70
		foreach ( $wordReversed as $xvalue ) {
71
			foreach ( $allVowels as $yvalue ) {
72
				if ( strcmp( $xvalue, $yvalue ) == 0 ) {
73
					$wordLastVowel = $xvalue;
74
					break;
75
				} else {
76
					continue;
77
				}
78
			}
79
80
			if ( $wordLastVowel !== null ) {
81
				break;
82
			} else {
83
				continue;
84
			}
85
		}
86
87
		// Now convert the word
88
		switch ( $case ) {