Avoid counting where not necessary

Change-Id: Iaae939780df26066de40e1584492865cb0ac80a7
This commit is contained in:
Thiemo Kreuz
2018-08-09 19:44:45 +02:00
committed by Umherirrender
parent 6d714e1fc7
commit f2e2e640c6

View File

@@ -135,7 +135,7 @@ class LanguageNameSearch {
break;
} else {
// Codepoints larger than 127 are represented by multi-byte sequences
if ( count( $values ) === 0 ) {
if ( $values === [] ) {
// 224 is the lowest non-overlong-encoded codepoint.
$lookingFor = ( $thisValue < 224 ) ? 2 : 3;
}