Skip to content

Commit

Permalink
Fixed coding standards
Browse files Browse the repository at this point in the history
Functions should be called without space between function’s name and starting bracket.
  • Loading branch information
ingk committed Sep 4, 2012
1 parent a82bf44 commit e312419
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Cake/Model/Model.php
Expand Up @@ -970,7 +970,7 @@ protected function _createLinks() {

foreach ($this->{$type} as $i => $className) {
$className = trim($className);
unset ($this->{$type}[$i]);
unset($this->{$type}[$i]);
$this->{$type}[$className] = array();
}
}
Expand All @@ -980,7 +980,7 @@ protected function _createLinks() {
$plugin = null;

if (is_numeric($assoc)) {
unset ($this->{$type}[$assoc]);
unset($this->{$type}[$assoc]);
$assoc = $value;
$value = array();

Expand Down Expand Up @@ -1156,7 +1156,7 @@ public function set($one, $two = null) {

foreach ($fieldSet as $fieldName => $fieldValue) {
if (isset($this->validationErrors[$fieldName])) {
unset ($this->validationErrors[$fieldName]);
unset($this->validationErrors[$fieldName]);
}

if ($modelName === $this->alias) {
Expand Down

0 comments on commit e312419

Please sign in to comment.