Code Duplication    Length = 7-8 lines in 2 locations

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

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

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

@@ 675-682 (lines=8) @@
672
     *
673
     * @return string
674
     */
675
    protected function htmlFromNode($node)
676
    {
677
        $domDocument = new \DOMDocument();
678
        $newNode = $domDocument->importNode($node, true);
679
        $domDocument->appendChild($newNode);
680
681
        return $domDocument->saveHTML();
682
    }
683
684
    /**
685
     * @param \DOMNode $node