Code Duplication    Length = 7-8 lines in 2 locations

lib/Caxy/HtmlDiff/Table/AbstractTableElement.php 1 location

@@ 46-52 (lines=7) @@
43
        return $this->domNode->getAttribute($name);
44
    }
45
46
    public static function htmlFromNode($node)
47
    {
48
        $domDocument = new \DOMDocument();
49
        $newNode = $domDocument->importNode($node, true);
50
        $domDocument->appendChild($newNode);
51
        return trim($domDocument->saveHTML());
52
    }
53
}
54

lib/Caxy/HtmlDiff/Table/TableDiff.php 1 location

@@ 701-708 (lines=8) @@
698
        return $innerHtml;
699
    }
700
701
    protected function htmlFromNode($node)
702
    {
703
        $domDocument = new \DOMDocument();
704
        $newNode = $domDocument->importNode($node, true);
705
        $domDocument->appendChild($newNode);
706
707
        return trim($domDocument->saveHTML());
708
    }
709
710
    protected function setInnerHtml($node, $html)
711
    {