Code Duplication    Length = 3-3 lines in 2 locations

code/api/thirdparty/simple_html_dom.php 2 locations

@@ 1406-1408 (lines=3) @@
1403
                    $this->parent->_[HDOM_INFO_END] = 0;
1404
                    $org_parent = $this->parent;
1405
1406
                    while (($this->parent->parent) && strtolower($this->parent->tag)!==$tag_lower) {
1407
                        $this->parent = $this->parent->parent;
1408
                    }
1409
1410
                    if (strtolower($this->parent->tag)!==$tag_lower) {
1411
                        $this->parent = $org_parent; // restore origonal parent
@@ 1422-1424 (lines=3) @@
1419
                    $this->parent->_[HDOM_INFO_END] = 0;
1420
                    $org_parent = $this->parent;
1421
1422
                    while (($this->parent->parent) && strtolower($this->parent->tag)!==$tag_lower) {
1423
                        $this->parent = $this->parent->parent;
1424
                    }
1425
1426
                    if (strtolower($this->parent->tag)!==$tag_lower) {
1427
                        $this->parent = $org_parent; // restore origonal parent