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])) {
@@ 467-476 (lines=10) @@
464
     */
465
    public static function checkBrowserNetPositive()
466
    {
467
        if (stripos(self::$userAgentString, 'NetPositive') !== false) {
468
            $aresult = explode('/', stristr(self::$userAgentString, 'NetPositive'));
469
            if (isset($aresult[1])) {
470
                $aversion = explode(' ', $aresult[1]);
471
                self::$browser->setVersion(str_replace(array('(', ')', ';'), '', $aversion[0]));
472
            }
473
            self::$browser->setName(Browser::NETPOSITIVE);
474
475
            return true;
476
        }
477
478
        return false;
479
    }