Code Duplication    Length = 9-10 lines in 2 locations

src/BrowserDetector.php 2 locations

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