Code Duplication    Length = 9-10 lines in 2 locations

src/BrowserDetector.php 2 locations

@@ 232-240 (lines=9) @@
229
            if (stripos(self::$userAgentString, 'msie') !== false && stripos(self::$userAgentString, 'opera') === false
230
            ) {
231
                // See if the browser is the odd MSN Explorer
232
                if (stripos(self::$userAgentString, 'msnb') !== false) {
233
                    $aresult = explode(' ', stristr(str_replace(';', '; ', self::$userAgentString), 'MSN'));
234
                    self::$browser->setName(Browser::MSN);
235
                    if (isset($aresult[1])) {
236
                        self::$browser->setVersion(str_replace(array('(', ')', ';'), '', $aresult[1]));
237
                    }
238
239
                    return true;
240
                }
241
                $aresult = explode(' ', stristr(str_replace(';', '; ', self::$userAgentString), 'msie'));
242
                self::$browser->setName(Browser::IE);
243
                if (isset($aresult[1])) {
@@ 535-544 (lines=10) @@
532
     */
533
    public static function checkBrowserNetPositive()
534
    {
535
        if (stripos(self::$userAgentString, 'NetPositive') !== false) {
536
            $aresult = explode('/', stristr(self::$userAgentString, 'NetPositive'));
537
            if (isset($aresult[1])) {
538
                $aversion = explode(' ', $aresult[1]);
539
                self::$browser->setVersion(str_replace(array('(', ')', ';'), '', $aversion[0]));
540
            }
541
            self::$browser->setName(Browser::NETPOSITIVE);
542
543
            return true;
544
        }
545
546
        return false;
547
    }