Code Duplication    Length = 4-4 lines in 2 locations

code/api/thirdparty/simple_html_dom.php 2 locations

@@ 1781-1784 (lines=4) @@
1778
1779
                if (isset($this->noise[$key])) {
1780
                    $text = substr($text, 0, $pos).$this->noise[$key].substr($text, $pos+16);
1781
                } else {
1782
                    // do this to prevent an infinite loop.
1783
                    $text = substr($text, 0, $pos).'UNDEFINED NOISE FOR KEY: '.$key . substr($text, $pos+16);
1784
                }
1785
            } else {
1786
                // There is no valid key being given back to us... We must get rid of the ___noise___ or we will have a problem.
1787
                $text = substr($text, 0, $pos).'NO NUMERIC NOISE KEY' . substr($text, $pos+11);
@@ 1785-1788 (lines=4) @@
1782
                    // do this to prevent an infinite loop.
1783
                    $text = substr($text, 0, $pos).'UNDEFINED NOISE FOR KEY: '.$key . substr($text, $pos+16);
1784
                }
1785
            } else {
1786
                // There is no valid key being given back to us... We must get rid of the ___noise___ or we will have a problem.
1787
                $text = substr($text, 0, $pos).'NO NUMERIC NOISE KEY' . substr($text, $pos+11);
1788
            }
1789
        }
1790
        return $text;
1791
    }