inigo / daisydiff

Automatically exported from code.google.com/p/daisydiff
0 stars 0 forks source link

TextNode->IsSame() references not declared variable $html2 in php #59

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

    public function isSameText($other) {
        if (is_null($other) || ! $other instanceof TextNode) {
            return false;
        }
        return preg_replace('/[\n\r]/',' ',$this->text) === preg_replace('/[\n\r]/',' ',$html2);
    }

I assume the $html2 needs to be replaces with $other->text?

Original issue reported on code.google.com by gurinder...@countersoft.com on 4 Apr 2014 at 2:02