Code Duplication    Length = 5-5 lines in 2 locations

lib/Caxy/HtmlDiff/ListDiffLines.php 2 locations

@@ 260-264 (lines=5) @@
257
                ) {
258
                    $matchingLi = $newListNode->children($indexInNew);
259
                }
260
                if (null !== $matchingLi) {
261
                    $htmlDiff = HtmlDiff::create($li->innertext, $matchingLi->innertext, $this->config);
262
                    $li->innertext = $htmlDiff->build();
263
                    $indexInNew++;
264
                }
265
                $class = self::CLASS_LIST_ITEM_NONE;
266
267
                if ($lastOperation === Operation::DELETED && !$replaced) {
@@ 318-322 (lines=5) @@
315
            if ($indexInNew < $newCount) {
316
                $matchingLi = $newListNode->children($indexInNew);
317
            }
318
            if (null !== $matchingLi) {
319
                $htmlDiff = HtmlDiff::create($li->innertext(), $matchingLi->innertext(), $this->config);
320
                $li->innertext = $htmlDiff->build();
321
                $indexInNew++;
322
            }
323
            $class = self::CLASS_LIST_ITEM_NONE;
324
325
            if ($lastOperation === Operation::DELETED) {