Skip to content
Browse files

code cleanup

  • Loading branch information...
1 parent 554d579 commit 2b1e5b02b55d3273bd6705128f4db3131b95357f @dereuromark dereuromark committed
Showing with 4 additions and 4 deletions.
  1. +1 −1 lib/Cake/Controller/Component/Acl/PhpAcl.php
  2. +1 −1 lib/Cake/I18n/I18n.php
  3. +2 −2 lib/Cake/Model/Permission.php
View
2 lib/Cake/Controller/Component/Acl/PhpAcl.php
@@ -164,7 +164,7 @@ public function check($aro, $aco, $action = "*") {
$allow = $this->options['policy'];
$prioritizedAros = $this->Aro->roles($aro);
- if ($action && $action != "*") {
+ if ($action && $action !== "*") {
$aco .= '/' . $action;
}
View
2 lib/Cake/I18n/I18n.php
@@ -456,7 +456,7 @@ public static function loadPo($filename) {
do {
$line = trim(fgets($file));
- if ($line == "" || $line[0] == "#") {
+ if ($line === "" || $line[0] === "#") {
continue;
}
if (preg_match("/msgid[[:space:]]+\"(.+)\"$/i", $line, $regs)) {
View
4 lib/Cake/Model/Permission.php
@@ -178,7 +178,7 @@ public function allow($aro, $aco, $actions = "*", $value = 1) {
$save = $perms[0][$this->alias];
}
- if ($actions == "*") {
+ if ($actions === "*") {
$save = array_combine($permKeys, array_pad(array(), count($permKeys), $value));
} else {
if (!is_array($actions)) {
@@ -186,7 +186,7 @@ public function allow($aro, $aco, $actions = "*", $value = 1) {
}
if (is_array($actions)) {
foreach ($actions as $action) {
- if ($action{0} != '_') {
+ if ($action{0} !== '_') {
$action = '_' . $action;
}
if (in_array($action, $permKeys)) {

0 comments on commit 2b1e5b0

Please sign in to comment.
Something went wrong with that request. Please try again.