Skip to content

Commit 05546af

Browse files
author
euromark
committed
coding standards
1 parent 00c8c65 commit 05546af

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/Cake/Model/Behavior/TreeBehavior.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ public function getParentNode(Model $Model, $id = null, $fields = null, $recursi
409409
extract(array_merge(array('id' => null), $id));
410410
}
411411
$overrideRecursive = $recursive;
412-
if (empty ($id)) {
412+
if (empty($id)) {
413413
$id = $Model->id;
414414
}
415415
extract($this->settings[$Model->alias]);
@@ -442,7 +442,7 @@ public function getPath(Model $Model, $id = null, $fields = null, $recursive = n
442442
extract(array_merge(array('id' => null), $id));
443443
}
444444
$overrideRecursive = $recursive;
445-
if (empty ($id)) {
445+
if (empty($id)) {
446446
$id = $Model->id;
447447
}
448448
extract($this->settings[$Model->alias]);
@@ -481,7 +481,7 @@ public function moveDown(Model $Model, $id = null, $number = 1) {
481481
if (!$number) {
482482
return false;
483483
}
484-
if (empty ($id)) {
484+
if (empty($id)) {
485485
$id = $Model->id;
486486
}
487487
extract($this->settings[$Model->alias]);
@@ -539,7 +539,7 @@ public function moveUp(Model $Model, $id = null, $number = 1) {
539539
if (!$number) {
540540
return false;
541541
}
542-
if (empty ($id)) {
542+
if (empty($id)) {
543543
$id = $Model->id;
544544
}
545545
extract($this->settings[$Model->alias]);
@@ -864,7 +864,7 @@ protected function _setParent(Model $Model, $parentId = null, $created = false)
864864
)));
865865
$edge = $this->_getMax($Model, $scope, $right, $recursive, $created);
866866

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

0 commit comments

Comments
 (0)