Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
coding standards
  • Loading branch information
euromark committed Feb 4, 2013
1 parent 00c8c65 commit 05546af
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/Cake/Model/Behavior/TreeBehavior.php
Expand Up @@ -409,7 +409,7 @@ public function getParentNode(Model $Model, $id = null, $fields = null, $recursi
extract(array_merge(array('id' => null), $id));
}
$overrideRecursive = $recursive;
if (empty ($id)) {
if (empty($id)) {
$id = $Model->id;
}
extract($this->settings[$Model->alias]);
Expand Down Expand Up @@ -442,7 +442,7 @@ public function getPath(Model $Model, $id = null, $fields = null, $recursive = n
extract(array_merge(array('id' => null), $id));
}
$overrideRecursive = $recursive;
if (empty ($id)) {
if (empty($id)) {
$id = $Model->id;
}
extract($this->settings[$Model->alias]);
Expand Down Expand Up @@ -481,7 +481,7 @@ public function moveDown(Model $Model, $id = null, $number = 1) {
if (!$number) {
return false;
}
if (empty ($id)) {
if (empty($id)) {
$id = $Model->id;
}
extract($this->settings[$Model->alias]);
Expand Down Expand Up @@ -539,7 +539,7 @@ public function moveUp(Model $Model, $id = null, $number = 1) {
if (!$number) {
return false;
}
if (empty ($id)) {
if (empty($id)) {
$id = $Model->id;
}
extract($this->settings[$Model->alias]);
Expand Down Expand Up @@ -864,7 +864,7 @@ protected function _setParent(Model $Model, $parentId = null, $created = false)
)));
$edge = $this->_getMax($Model, $scope, $right, $recursive, $created);

if (empty ($parentId)) {
if (empty($parentId)) {
$this->_sync($Model, $edge - $node[$left] + 1, '+', 'BETWEEN ' . $node[$left] . ' AND ' . $node[$right], $created);
$this->_sync($Model, $node[$right] - $node[$left] + 1, '-', '> ' . $node[$left], $created);
} else {
Expand Down

0 comments on commit 05546af

Please sign in to comment.