coding standards

This commit is contained in:
euromark 2013-02-04 09:26:50 +01:00
parent 00c8c654fb
commit 05546aff32

View file

@ -409,7 +409,7 @@ class TreeBehavior extends ModelBehavior {
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 @@ class TreeBehavior extends ModelBehavior {
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 @@ class TreeBehavior extends ModelBehavior {
if (!$number) {
return false;
}
if (empty ($id)) {
if (empty($id)) {
$id = $Model->id;
}
extract($this->settings[$Model->alias]);
@ -539,7 +539,7 @@ class TreeBehavior extends ModelBehavior {
if (!$number) {
return false;
}
if (empty ($id)) {
if (empty($id)) {
$id = $Model->id;
}
extract($this->settings[$Model->alias]);
@ -864,7 +864,7 @@ class TreeBehavior extends ModelBehavior {
)));
$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 {