Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

coding standards

  • Loading branch information...
commit 05546aff3228087bcecf33a93456206d8d95c4d8 1 parent 00c8c65
@dereuromark dereuromark authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/Cake/Model/Behavior/TreeBehavior.php
View
10 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 {
Please sign in to comment.
Something went wrong with that request. Please try again.