Code Duplication    Length = 7-7 lines in 2 locations

lib/Caxy/HtmlDiff/ListDiffLines.php 2 locations

@@ 215-221 (lines=7) @@
212
     *
213
     * @return string
214
     */
215
    protected function deleteListItem($li)
216
    {
217
        $this->addClassToNode($li, self::CLASS_LIST_ITEM_DELETED);
218
        $li->innertext = sprintf('<del>%s</del>', $li->innertext);
219
220
        return $li->outertext;
221
    }
222
223
    /**
224
     * @param \simple_html_dom_node $li
@@ 229-235 (lines=7) @@
226
     *
227
     * @return string
228
     */
229
    protected function addListItem($li, $replacement = false)
230
    {
231
        $this->addClassToNode($li, $replacement ? self::CLASS_LIST_ITEM_CHANGED : self::CLASS_LIST_ITEM_ADDED);
232
        $li->innertext = sprintf('<ins>%s</ins>', $li->innertext);
233
234
        return $li->outertext;
235
    }
236
237
    /**
238
     * @param Operation[]|array     $operations