Code Duplication    Length = 7-8 lines in 2 locations

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

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

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

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