private static function fetchScheme(array $server): string
    {
        $server += ['HTTPS' => ''];
        $res = filter_var($server['HTTPS'], FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE);

        return $res !== false ? 'https' : 'http';
    }
private static function fetchScheme(array $server): string
    {
        $server += ['HTTPS' => ''];
        $res = filter_var($server['HTTPS'], FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE);

        return $res !== false ? 'https' : 'http';
    }
private static function fetchScheme ( array $ server ) : string { $ server += [ 'HTTPS' => '' ] ; $ res = filter_var ( $ server [ 'HTTPS' ] , FILTER_VALIDATE_BOOLEAN , FILTER_NULL_ON_FAILURE ) ; return $ res !== false ? 'https' : 'http' ; }
Returns the environment scheme.
Returns the environment scheme .