|
@@ 223-227 (lines=5) @@
|
| 220 |
|
} |
| 221 |
|
if ($this->node->{$this->leftAttribute} > $compareRight) { |
| 222 |
|
//move node up |
| 223 |
|
if ($position == 0) { |
| 224 |
|
$leftFrom = $this->parent->{$this->leftAttribute} + 1; |
| 225 |
|
} else { |
| 226 |
|
$leftFrom = $newPrevSiblingData[$newPrevSiblingId][$this->rightAttribute] + 1; |
| 227 |
|
} |
| 228 |
|
$rightTo = $this->node->{$this->leftAttribute}; |
| 229 |
|
$nodeDelta = $this->node->{$this->leftAttribute} - $leftFrom; |
| 230 |
|
$nodeOperator = '-'; |
|
@@ 237-241 (lines=5) @@
|
| 234 |
|
} else if ($this->node->{$this->leftAttribute} < $compareRight) { |
| 235 |
|
//move node down |
| 236 |
|
$leftFrom = $this->node->{$this->rightAttribute}; |
| 237 |
|
if ($position == 0) { |
| 238 |
|
$rightTo = $this->parent->{$this->leftAttribute}; |
| 239 |
|
} else { |
| 240 |
|
$rightTo = $newPrevSiblingData[$newPrevSiblingId][$this->rightAttribute]; |
| 241 |
|
} |
| 242 |
|
$nodeOperator = '+'; |
| 243 |
|
$parentOperator = $siblingsOperator = '-'; |
| 244 |
|
$nodeDelta = $rightTo - $siblingsDelta + 1 - $this->node->{$this->leftAttribute}; |