src/Agent.php
public function browser($userAgent = null)
    {
        // Get browser rules
        $rules = $this->mergeRules(
            static::$additionalBrowsers, // NEW
            static::$browsers
        );

        return $this->findDetectionRulesAgainstUA($rules, $userAgent);
    }
public function browser($userAgent = null)
    {
        // Get browser rules
        $rules = $this->mergeRules(
            static::$additionalBrowsers, // NEW
            static::$browsers
        );

        return $this->findDetectionRulesAgainstUA($rules, $userAgent);
    }
public function browser ( $ userAgent = null ) { // Get browser rules $ rules = $ this -> mergeRules ( static :: $ additionalBrowsers , // NEW static :: $ browsers ) ; return $ this -> findDetectionRulesAgainstUA ( $ rules , $ userAgent ) ; }
Get the browser name.

@param  string|null  $userAgent

@return string
Get the browser name .