Browse files

Strict checks for I18n::loadLocaleDefinition().

  • Loading branch information...
1 parent 4f91465 commit f4929c1b04f7546431a7099f2a1b5b5bbea9a13c @Phally Phally committed Sep 1, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Cake/I18n/I18n.php
View
6 lib/Cake/I18n/I18n.php
@@ -549,10 +549,10 @@ public static function loadLocaleDefinition($filename) {
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 @@ public static function loadLocaleDefinition($filename) {
$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;

0 comments on commit f4929c1

Please sign in to comment.