@@ 288-290 (lines=3) @@ | ||
285 | break; |
|
286 | ||
287 | case Operation::DELETED: |
|
288 | for ($i = $operation->startInOld; $i <= $operation->endInOld; $i++) { |
|
289 | $output .= $this->deleteListItem($oldListNode->children($i - 1)); |
|
290 | } |
|
291 | $indexInOld = $operation->endInOld; |
|
292 | break; |
|
293 | ||
@@ 296-299 (lines=4) @@ | ||
293 | ||
294 | case Operation::CHANGED: |
|
295 | $changeDelta = 0; |
|
296 | for ($i = $operation->startInOld; $i <= $operation->endInOld; $i++) { |
|
297 | $output .= $this->deleteListItem($oldListNode->children($i - 1)); |
|
298 | $changeDelta--; |
|
299 | } |
|
300 | for ($i = $operation->startInNew; $i <= $operation->endInNew; $i++) { |
|
301 | $output .= $this->addListItem($newListNode->children($i - 1), $changeDelta < 0); |
|
302 | $changeDelta++; |