diff --git a/lib/Cake/I18n/I18n.php b/lib/Cake/I18n/I18n.php index d543546f7..9eb739534 100644 --- a/lib/Cake/I18n/I18n.php +++ b/lib/Cake/I18n/I18n.php @@ -549,10 +549,10 @@ class I18n { continue; } $count = count($parts); - if ($count == 2) { + if ($count === 2) { $currentToken = $parts[0]; $value = $parts[1]; - } elseif ($count == 1) { + } elseif ($count === 1) { $value = is_array($value) ? $parts[0] : $value . $parts[0]; } else { continue; @@ -575,7 +575,7 @@ class I18n { $val = str_replace($replacements, $mustEscape, $val); $value[$i] = $val; } - if (count($value) == 1) { + if (count($value) === 1) { $definitions[$currentToken] = array_pop($value); } else { $definitions[$currentToken] = $value;