mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
coding standards
This commit is contained in:
parent
00c8c654fb
commit
05546aff32
1 changed files with 5 additions and 5 deletions
|
@ -409,7 +409,7 @@ class TreeBehavior extends ModelBehavior {
|
||||||
extract(array_merge(array('id' => null), $id));
|
extract(array_merge(array('id' => null), $id));
|
||||||
}
|
}
|
||||||
$overrideRecursive = $recursive;
|
$overrideRecursive = $recursive;
|
||||||
if (empty ($id)) {
|
if (empty($id)) {
|
||||||
$id = $Model->id;
|
$id = $Model->id;
|
||||||
}
|
}
|
||||||
extract($this->settings[$Model->alias]);
|
extract($this->settings[$Model->alias]);
|
||||||
|
@ -442,7 +442,7 @@ class TreeBehavior extends ModelBehavior {
|
||||||
extract(array_merge(array('id' => null), $id));
|
extract(array_merge(array('id' => null), $id));
|
||||||
}
|
}
|
||||||
$overrideRecursive = $recursive;
|
$overrideRecursive = $recursive;
|
||||||
if (empty ($id)) {
|
if (empty($id)) {
|
||||||
$id = $Model->id;
|
$id = $Model->id;
|
||||||
}
|
}
|
||||||
extract($this->settings[$Model->alias]);
|
extract($this->settings[$Model->alias]);
|
||||||
|
@ -481,7 +481,7 @@ class TreeBehavior extends ModelBehavior {
|
||||||
if (!$number) {
|
if (!$number) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (empty ($id)) {
|
if (empty($id)) {
|
||||||
$id = $Model->id;
|
$id = $Model->id;
|
||||||
}
|
}
|
||||||
extract($this->settings[$Model->alias]);
|
extract($this->settings[$Model->alias]);
|
||||||
|
@ -539,7 +539,7 @@ class TreeBehavior extends ModelBehavior {
|
||||||
if (!$number) {
|
if (!$number) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (empty ($id)) {
|
if (empty($id)) {
|
||||||
$id = $Model->id;
|
$id = $Model->id;
|
||||||
}
|
}
|
||||||
extract($this->settings[$Model->alias]);
|
extract($this->settings[$Model->alias]);
|
||||||
|
@ -864,7 +864,7 @@ class TreeBehavior extends ModelBehavior {
|
||||||
)));
|
)));
|
||||||
$edge = $this->_getMax($Model, $scope, $right, $recursive, $created);
|
$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, $edge - $node[$left] + 1, '+', 'BETWEEN ' . $node[$left] . ' AND ' . $node[$right], $created);
|
||||||
$this->_sync($Model, $node[$right] - $node[$left] + 1, '-', '> ' . $node[$left], $created);
|
$this->_sync($Model, $node[$right] - $node[$left] + 1, '-', '> ' . $node[$left], $created);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue