Code Duplication    Length = 7-8 lines in 2 locations

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

@@ 76-82 (lines=7) @@
73
     *
74
     * @return string
75
     */
76
    public static function htmlFromNode($node)
77
    {
78
        $domDocument = new \DOMDocument();
79
        $newNode = $domDocument->importNode($node, true);
80
        $domDocument->appendChild($newNode);
81
        return trim($domDocument->saveHTML());
82
    }
83
}
84

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

@@ 655-662 (lines=8) @@
652
     *
653
     * @return string
654
     */
655
    protected function htmlFromNode($node)
656
    {
657
        $domDocument = new \DOMDocument();
658
        $newNode = $domDocument->importNode($node, true);
659
        $domDocument->appendChild($newNode);
660
661
        return $domDocument->saveHTML();
662
    }
663
664
    /**
665
     * @param \DOMNode $node