Code Duplication    Length = 3-4 lines in 2 locations

lib/Caxy/HtmlDiff/ListDiffLines.php 2 locations

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