Code Duplication    Length = 3-4 lines in 2 locations

lib/Caxy/HtmlDiff/ListDiffLines.php 2 locations

@@ 281-283 (lines=3) @@
278
279
            switch ($operation->action) {
280
                case Operation::ADDED:
281
                    for ($i = $operation->startInNew; $i <= $operation->endInNew; $i++) {
282
                        $output .= $this->addListItem($newListNode->children($i - 1));
283
                    }
284
                    $indexInNew = $operation->endInNew;
285
                    break;
286
@@ 300-303 (lines=4) @@
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++;
303
                    }
304
                    $indexInOld = $operation->endInOld;
305
                    $indexInNew = $operation->endInNew;
306
                    break;