Skip to content

Commit

Permalink
Removing unnecessary variable assignment.
Browse files Browse the repository at this point in the history
Removing unnecessary parenthesis.
  • Loading branch information
markstory committed Mar 26, 2010
1 parent 9334aea commit a72dabe
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions cake/libs/i18n.php
Expand Up @@ -189,16 +189,15 @@ function translate($singular, $plural = null, $domain = null, $category = 6, $co
}
}
if (strlen($trans)) {
$singular = $trans;
return $singular;
return $trans;
}
}
}

if (!empty($plurals)) {
return($plural);
return $plural;
}
return($singular);
return $singular;
}

/**
Expand Down Expand Up @@ -317,7 +316,7 @@ function __bindTextDomain($domain) {

if (empty($this->__domains[$this->category][$this->__lang][$domain])) {
$this->__domains[$this->category][$this->__lang][$domain] = array();
return($domain);
return $domain;
}

if ($head = $this->__domains[$this->category][$this->__lang][$domain][""]) {
Expand All @@ -338,7 +337,7 @@ function __bindTextDomain($domain) {
unset($this->__domains[$this->category][$this->__lang][$domain][null]);
}
}
return($domain);
return $domain;
}

/**
Expand Down

0 comments on commit a72dabe

Please sign in to comment.