Code Duplication    Length = 9-10 lines in 2 locations

src/BrowserDetector.php 2 locations

@@ 180-188 (lines=9) @@
177
            if (stripos(self::$userAgentString, 'msie') !== false && stripos(self::$userAgentString, 'opera') === false
178
            ) {
179
                // See if the browser is the odd MSN Explorer
180
                if (stripos(self::$userAgentString, 'msnb') !== false) {
181
                    $aresult = explode(' ', stristr(str_replace(';', '; ', self::$userAgentString), 'MSN'));
182
                    self::$browser->setName(Browser::MSN);
183
                    if (isset($aresult[1])) {
184
                        self::$browser->setVersion(str_replace(array('(', ')', ';'), '', $aresult[1]));
185
                    }
186
187
                    return true;
188
                }
189
                $aresult = explode(' ', stristr(str_replace(';', '; ', self::$userAgentString), 'msie'));
190
                self::$browser->setName(Browser::IE);
191
                if (isset($aresult[1])) {
@@ 462-471 (lines=10) @@
459
     */
460
    public static function checkBrowserNetPositive()
461
    {
462
        if (stripos(self::$userAgentString, 'NetPositive') !== false) {
463
            $aresult = explode('/', stristr(self::$userAgentString, 'NetPositive'));
464
            if (isset($aresult[1])) {
465
                $aversion = explode(' ', $aresult[1]);
466
                self::$browser->setVersion(str_replace(array('(', ')', ';'), '', $aversion[0]));
467
            }
468
            self::$browser->setName(Browser::NETPOSITIVE);
469
470
            return true;
471
        }
472
473
        return false;
474
    }