Code Duplication    Length = 9-10 lines in 2 locations

src/BrowserDetector.php 2 locations

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