protected function setPlatform(): bool
	{
		if (is_array($this->config->platforms) && $this->config->platforms)
		{
			foreach ($this->config->platforms as $key => $val)
			{
				if (preg_match('|' . preg_quote($key) . '|i', $this->agent))
				{
					$this->platform = $val;

					return true;
				}
			}
		}

		$this->platform = 'Unknown Platform';

		return false;
	}
protected function setPlatform(): bool
	{
		if (is_array($this->config->platforms) && $this->config->platforms)
		{
			foreach ($this->config->platforms as $key => $val)
			{
				if (preg_match('|' . preg_quote($key) . '|i', $this->agent))
				{
					$this->platform = $val;

					return true;
				}
			}
		}

		$this->platform = 'Unknown Platform';

		return false;
	}
protected function setPlatform ( ) : bool { if ( is_array ( $ this -> config -> platforms ) && $ this -> config -> platforms ) { foreach ( $ this -> config -> platforms as $ key => $ val ) { if ( preg_match ( '|' . preg_quote ( $ key ) . '|i' , $ this -> agent ) ) { $ this -> platform = $ val ; return true ; } } } $ this -> platform = 'Unknown Platform' ; return false ; }
Set the Platform

@return boolean
Set the Platform