|
@@ 272-274 (lines=3) @@
|
| 269 |
|
|
| 270 |
|
switch ($operation->action) { |
| 271 |
|
case Operation::ADDED: |
| 272 |
|
for ($i = $operation->startInNew; $i <= $operation->endInNew; $i++) { |
| 273 |
|
$output .= $this->addListItem($newListNode->children($i - 1)); |
| 274 |
|
} |
| 275 |
|
$indexInNew = $operation->endInNew; |
| 276 |
|
break; |
| 277 |
|
|
|
@@ 291-294 (lines=4) @@
|
| 288 |
|
$output .= $this->deleteListItem($oldListNode->children($i - 1)); |
| 289 |
|
$changeDelta--; |
| 290 |
|
} |
| 291 |
|
for ($i = $operation->startInNew; $i <= $operation->endInNew; $i++) { |
| 292 |
|
$output .= $this->addListItem($newListNode->children($i - 1), $changeDelta < 0); |
| 293 |
|
$changeDelta++; |
| 294 |
|
} |
| 295 |
|
$indexInOld = $operation->endInOld; |
| 296 |
|
$indexInNew = $operation->endInNew; |
| 297 |
|
break; |