public static function checkBrowserFirefox()
    {
        if (stripos(self::$userAgentString, 'safari') === false) {
            if (preg_match("/Firefox[\/ \(]([^ ;\)]+)/i", self::$userAgentString, $matches)) {
                if (isset($matches[1])) {
                    self::$browser->setVersion($matches[1]);
                }
                self::$browser->setName(Browser::FIREFOX);

                return true;
            } elseif (preg_match('/Firefox$/i', self::$userAgentString, $matches)) {
                self::$browser->setVersion('');
                self::$browser->setName(Browser::FIREFOX);

                return true;
            }
        }

        return false;
    }
public static function checkBrowserFirefox()
    {
        if (stripos(self::$userAgentString, 'safari') === false) {
            if (preg_match("/Firefox[\/ \(]([^ ;\)]+)/i", self::$userAgentString, $matches)) {
                if (isset($matches[1])) {
                    self::$browser->setVersion($matches[1]);
                }
                self::$browser->setName(Browser::FIREFOX);

                return true;
            } elseif (preg_match('/Firefox$/i', self::$userAgentString, $matches)) {
                self::$browser->setVersion('');
                self::$browser->setName(Browser::FIREFOX);

                return true;
            }
        }

        return false;
    }
public static function checkBrowserFirefox ( ) { if ( stripos ( self :: $ userAgentString , 'safari' ) === false ) { if ( preg_match ( "/Firefox[\/ \(]([^ ;\)]+)/i" , self :: $ userAgentString , $ matches ) ) { if ( isset ( $ matches [ 1 ] ) ) { self :: $ browser -> setVersion ( $ matches [ 1 ] ) ; } self :: $ browser -> setName ( Browser :: FIREFOX ) ; return true ; } elseif ( preg_match ( '/Firefox$/i' , self :: $ userAgentString , $ matches ) ) { self :: $ browser -> setVersion ( '' ) ; self :: $ browser -> setName ( Browser :: FIREFOX ) ; return true ; } } return false ; }
Determine if the browser is Firefox.

@return bool
Determine if the browser is Firefox .