Code Duplication    Length = 6-7 lines in 2 locations

main/inc/lib/browser/Browser.php 2 locations

@@ 579-584 (lines=6) @@
576
        } // Test for versions > 1.5
577
        else if (stripos($this->_agent, 'msie') !== false && stripos($this->_agent, 'opera') === false) {
578
            // See if the browser is the odd MSN Explorer
579
            if (stripos($this->_agent, 'msnb') !== false) {
580
                $aresult = explode(' ', stristr(str_replace(';', '; ', $this->_agent), 'MSN'));
581
                $this->setBrowser(self::BROWSER_MSN);
582
                $this->setVersion(str_replace(array('(', ')', ';'), '', $aresult[1]));
583
                return true;
584
            }
585
            $aresult = explode(' ', stristr(str_replace(';', '; ', $this->_agent), 'msie'));
586
            $this->setBrowser(self::BROWSER_IE);
587
            $this->setVersion(str_replace(array('(', ')', ';'), '', $aresult[1]));
@@ 716-722 (lines=7) @@
713
     */
714
    protected function checkBrowserNetPositive()
715
    {
716
        if (stripos($this->_agent, 'NetPositive') !== false) {
717
            $aresult = explode('/', stristr($this->_agent, 'NetPositive'));
718
            $aversion = explode(' ', $aresult[1]);
719
            $this->setVersion(str_replace(array('(', ')', ';'), '', $aversion[0]));
720
            $this->setBrowser(self::BROWSER_NETPOSITIVE);
721
            return true;
722
        }
723
        return false;
724
    }
725