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

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

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

@param  string|null  $userAgent

@return string
Get the platform name .