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

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