Code Duplication    Length = 9-10 lines in 4 locations

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

@@ 793-802 (lines=10) @@
790
     * Determine if the browser is Phoenix or not (last updated 1.7)
791
     * @return boolean True if the browser is Phoenix otherwise false
792
     */
793
    protected function checkBrowserPhoenix()
794
    {
795
        if (stripos($this->_agent, 'Phoenix') !== false) {
796
            $aversion = explode('/', stristr($this->_agent, 'Phoenix'));
797
            $this->setVersion($aversion[1]);
798
            $this->setBrowser(self::BROWSER_PHOENIX);
799
            return true;
800
        }
801
        return false;
802
    }
803
804
    /**
805
     * Determine if the browser is Firebird or not (last updated 1.7)
@@ 808-817 (lines=10) @@
805
     * Determine if the browser is Firebird or not (last updated 1.7)
806
     * @return boolean True if the browser is Firebird otherwise false
807
     */
808
    protected function checkBrowserFirebird()
809
    {
810
        if (stripos($this->_agent, 'Firebird') !== false) {
811
            $aversion = explode('/', stristr($this->_agent, 'Firebird'));
812
            $this->setVersion($aversion[1]);
813
            $this->setBrowser(self::BROWSER_FIREBIRD);
814
            return true;
815
        }
816
        return false;
817
    }
818
819
    /**
820
     * Determine if the browser is Netscape Navigator 9+ or not (last updated 1.7)
@@ 842-850 (lines=9) @@
839
     * Determine if the browser is Shiretoko or not (https://wiki.mozilla.org/Projects/shiretoko) (last updated 1.7)
840
     * @return boolean True if the browser is Shiretoko otherwise false
841
     */
842
    protected function checkBrowserShiretoko()
843
    {
844
        if (stripos($this->_agent, 'Mozilla') !== false && preg_match('/Shiretoko\/([^ ]*)/i', $this->_agent, $matches)) {
845
            $this->setVersion($matches[1]);
846
            $this->setBrowser(self::BROWSER_SHIRETOKO);
847
            return true;
848
        }
849
        return false;
850
    }
851
852
    /**
853
     * Determine if the browser is Ice Cat or not (http://en.wikipedia.org/wiki/GNU_IceCat) (last updated 1.7)
@@ 856-864 (lines=9) @@
853
     * Determine if the browser is Ice Cat or not (http://en.wikipedia.org/wiki/GNU_IceCat) (last updated 1.7)
854
     * @return boolean True if the browser is Ice Cat otherwise false
855
     */
856
    protected function checkBrowserIceCat()
857
    {
858
        if (stripos($this->_agent, 'Mozilla') !== false && preg_match('/IceCat\/([^ ]*)/i', $this->_agent, $matches)) {
859
            $this->setVersion($matches[1]);
860
            $this->setBrowser(self::BROWSER_ICECAT);
861
            return true;
862
        }
863
        return false;
864
    }
865
866
    /**
867
     * Determine if the browser is Nokia or not (last updated 1.7)