Code Duplication    Length = 7-8 lines in 2 locations

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

@@ 87-93 (lines=7) @@
84
     *
85
     * @return string
86
     */
87
    public static function htmlFromNode($node)
88
    {
89
        $domDocument = new \DOMDocument();
90
        $newNode = $domDocument->importNode($node, true);
91
        $domDocument->appendChild($newNode);
92
        return trim($domDocument->saveHTML());
93
    }
94
}
95

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

@@ 721-728 (lines=8) @@
718
     *
719
     * @return string
720
     */
721
    protected function htmlFromNode($node)
722
    {
723
        $domDocument = new \DOMDocument();
724
        $newNode = $domDocument->importNode($node, true);
725
        $domDocument->appendChild($newNode);
726
727
        return $domDocument->saveHTML();
728
    }
729
730
    /**
731
     * @param \DOMNode $node