Code Duplication    Length = 9-10 lines in 2 locations

src/BrowserDetector.php 2 locations

@@ 214-222 (lines=9) @@
211
            if (stripos(self::$userAgentString, 'msie') !== false && stripos(self::$userAgentString, 'opera') === false
212
            ) {
213
                // See if the browser is the odd MSN Explorer
214
                if (stripos(self::$userAgentString, 'msnb') !== false) {
215
                    $aresult = explode(' ', stristr(str_replace(';', '; ', self::$userAgentString), 'MSN'));
216
                    self::$browser->setName(Browser::MSN);
217
                    if (isset($aresult[1])) {
218
                        self::$browser->setVersion(str_replace(array('(', ')', ';'), '', $aresult[1]));
219
                    }
220
221
                    return true;
222
                }
223
                $aresult = explode(' ', stristr(str_replace(';', '; ', self::$userAgentString), 'msie'));
224
                self::$browser->setName(Browser::IE);
225
                if (isset($aresult[1])) {
@@ 496-505 (lines=10) @@
493
     */
494
    public static function checkBrowserNetPositive()
495
    {
496
        if (stripos(self::$userAgentString, 'NetPositive') !== false) {
497
            $aresult = explode('/', stristr(self::$userAgentString, 'NetPositive'));
498
            if (isset($aresult[1])) {
499
                $aversion = explode(' ', $aresult[1]);
500
                self::$browser->setVersion(str_replace(array('(', ')', ';'), '', $aversion[0]));
501
            }
502
            self::$browser->setName(Browser::NETPOSITIVE);
503
504
            return true;
505
        }
506
507
        return false;
508
    }