Code Duplication    Length = 6-6 lines in 2 locations

code/api/thirdparty/simple_html_dom.php 2 locations

@@ 1688-1693 (lines=6) @@
1685
            return '';
1686
        }
1687
1688
        if (($pos = strpos($this->doc, $char, $this->pos))===false) {
1689
            $ret = substr($this->doc, $this->pos, $this->size-$this->pos);
1690
            $this->char = null;
1691
            $this->pos = $this->size;
1692
            return $ret;
1693
        }
1694
1695
        if ($pos===$this->pos) {
1696
            return '';
@@ 1712-1717 (lines=6) @@
1709
1710
        $start = $this->pos;
1711
        while (1) {
1712
            if (($pos = strpos($this->doc, $char, $start))===false) {
1713
                $ret = substr($this->doc, $this->pos, $this->size-$this->pos);
1714
                $this->char = null;
1715
                $this->pos = $this->size;
1716
                return $ret;
1717
            }
1718
1719
            if ($pos===$this->pos) {
1720
                return '';