Remove useless continue at end of loop
authorFomafix <fomafix@googlemail.com>
Fri, 5 Oct 2018 10:31:26 +0000 (12:31 +0200)
committerUmherirrender <umherirrender_de.wp@web.de>
Sun, 9 Dec 2018 10:27:32 +0000 (10:27 +0000)
A loop always continues at the end of the loop.

Change-Id: I6be79afa6ea67247d37ab3dc3c552183a81d6706

languages/classes/LanguageKk_cyrl.php
languages/classes/LanguageTyv.php

index 7353a82..b9da24a 100644 (file)
@@ -760,14 +760,10 @@ class LanguageKk_cyrl extends Language {
                                if ( strcmp( $xvalue, $yvalue ) == 0 ) {
                                        $lastLetter[1] = $xvalue;
                                        break;
-                               } else {
-                                       continue;
                                }
                        }
                        if ( $lastLetter[1] !== null ) {
                                break;
-                       } else {
-                               continue;
                        }
                }
 
index 437651c..0101b27 100644 (file)
@@ -72,15 +72,11 @@ class LanguageTyv extends Language {
                                if ( strcmp( $xvalue, $yvalue ) == 0 ) {
                                        $wordLastVowel = $xvalue;
                                        break;
-                               } else {
-                                       continue;
                                }
                        }
 
                        if ( $wordLastVowel !== null ) {
                                break;
-                       } else {
-                               continue;
                        }
                }