Code Duplication    Length = 7-7 lines in 2 locations

main/inc/lib/browser/Browser.php 2 locations

@@ 681-687 (lines=7) @@
678
            $this->setVersion($aversion[0]);
679
            $this->setBrowser(self::BROWSER_CHROME);
680
            //Chrome on Android
681
            if (stripos($this->_agent, 'Android') !== false) {
682
                if (stripos($this->_agent, 'Mobile') !== false) {
683
                    $this->setMobile(true);
684
                } else {
685
                    $this->setTablet(true);
686
                }
687
            }
688
            return true;
689
        }
690
        return false;
@@ 896-902 (lines=7) @@
893
                $this->setVersion($matches[1]);
894
                $this->setBrowser(self::BROWSER_FIREFOX);
895
                //Firefox on Android
896
                if (stripos($this->_agent, 'Android') !== false) {
897
                    if (stripos($this->_agent, 'Mobile') !== false) {
898
                        $this->setMobile(true);
899
                    } else {
900
                        $this->setTablet(true);
901
                    }
902
                }
903
                return true;
904
            } else if (preg_match("/Firefox$/i", $this->_agent, $matches)) {
905
                $this->setVersion("");