Code Duplication    Length = 9-10 lines in 2 locations

src/BrowserDetector.php 2 locations

@@ 197-205 (lines=9) @@
194
            if (stripos(self::$userAgentString, 'msie') !== false && stripos(self::$userAgentString, 'opera') === false
195
            ) {
196
                // See if the browser is the odd MSN Explorer
197
                if (stripos(self::$userAgentString, 'msnb') !== false) {
198
                    $aresult = explode(' ', stristr(str_replace(';', '; ', self::$userAgentString), 'MSN'));
199
                    self::$browser->setName(Browser::MSN);
200
                    if (isset($aresult[1])) {
201
                        self::$browser->setVersion(str_replace(array('(', ')', ';'), '', $aresult[1]));
202
                    }
203
204
                    return true;
205
                }
206
                $aresult = explode(' ', stristr(str_replace(';', '; ', self::$userAgentString), 'msie'));
207
                self::$browser->setName(Browser::IE);
208
                if (isset($aresult[1])) {
@@ 479-488 (lines=10) @@
476
     */
477
    public static function checkBrowserNetPositive()
478
    {
479
        if (stripos(self::$userAgentString, 'NetPositive') !== false) {
480
            $aresult = explode('/', stristr(self::$userAgentString, 'NetPositive'));
481
            if (isset($aresult[1])) {
482
                $aversion = explode(' ', $aresult[1]);
483
                self::$browser->setVersion(str_replace(array('(', ')', ';'), '', $aversion[0]));
484
            }
485
            self::$browser->setName(Browser::NETPOSITIVE);
486
487
            return true;
488
        }
489
490
        return false;
491
    }