Skip to content
Permalink
Browse files

coding standards

  • Loading branch information...
dereuromark committed Feb 4, 2013
1 parent 00c8c65 commit 05546aff3228087bcecf33a93456206d8d95c4d8
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/Cake/Model/Behavior/TreeBehavior.php
@@ -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]);
@@ -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]);
@@ -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]);
@@ -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]);
@@ -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 {

0 comments on commit 05546af

Please sign in to comment.
You can’t perform that action at this time.