Code Duplication    Length = 7-8 lines in 2 locations

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

@@ 46-52 (lines=7) @@
43
        return $this->domNode->getAttribute($name);
44
    }
45
46
    public static function htmlFromNode($node)
47
    {
48
        $domDocument = new \DOMDocument();
49
        $newNode = $domDocument->importNode($node, true);
50
        $domDocument->appendChild($newNode);
51
        return trim($domDocument->saveHTML());
52
    }
53
}
54

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

@@ 617-624 (lines=8) @@
614
        return $innerHtml;
615
    }
616
617
    protected function htmlFromNode($node)
618
    {
619
        $domDocument = new \DOMDocument();
620
        $newNode = $domDocument->importNode($node, true);
621
        $domDocument->appendChild($newNode);
622
623
        return trim($domDocument->saveHTML());
624
    }
625
626
    protected function setInnerHtml($node, $html)
627
    {