Code Duplication    Length = 9-10 lines in 2 locations

src/BrowserDetector.php 2 locations

@@ 298-306 (lines=9) @@
295
            if (stripos(self::$userAgentString, 'msie') !== false && stripos(self::$userAgentString, 'opera') === false
296
            ) {
297
                // See if the browser is the odd MSN Explorer
298
                if (stripos(self::$userAgentString, 'msnb') !== false) {
299
                    $aresult = explode(' ', stristr(str_replace(';', '; ', self::$userAgentString), 'MSN'));
300
                    self::$browser->setName(Browser::MSN);
301
                    if (isset($aresult[1])) {
302
                        self::$browser->setVersion(str_replace(array('(', ')', ';'), '', $aresult[1]));
303
                    }
304
305
                    return true;
306
                }
307
                $aresult = explode(' ', stristr(str_replace(';', '; ', self::$userAgentString), 'msie'));
308
                self::$browser->setName(Browser::IE);
309
                if (isset($aresult[1])) {
@@ 614-623 (lines=10) @@
611
     */
612
    public static function checkBrowserNetPositive()
613
    {
614
        if (stripos(self::$userAgentString, 'NetPositive') !== false) {
615
            $aresult = explode('/', stristr(self::$userAgentString, 'NetPositive'));
616
            if (isset($aresult[1])) {
617
                $aversion = explode(' ', $aresult[1]);
618
                self::$browser->setVersion(str_replace(array('(', ')', ';'), '', $aversion[0]));
619
            }
620
            self::$browser->setName(Browser::NETPOSITIVE);
621
622
            return true;
623
        }
624
625
        return false;
626
    }