src/mako/http/Request.php
protected function determineMethod(): string
	{
		$this->realMethod = $method = strtoupper($this->server->get('REQUEST_METHOD', 'GET'));

		if($method === 'POST')
		{
			return strtoupper($this->post->get('REQUEST_METHOD_OVERRIDE', $this->server->get('HTTP_X_HTTP_METHOD_OVERRIDE', 'POST')));
		}

		return $method;
	}
protected function determineMethod(): string
	{
		$this->realMethod = $method = strtoupper($this->server->get('REQUEST_METHOD', 'GET'));

		if($method === 'POST')
		{
			return strtoupper($this->post->get('REQUEST_METHOD_OVERRIDE', $this->server->get('HTTP_X_HTTP_METHOD_OVERRIDE', 'POST')));
		}

		return $method;
	}
protected function determineMethod ( ) : string { $ this -> realMethod = $ method = strtoupper ( $ this -> server -> get ( 'REQUEST_METHOD' , 'GET' ) ) ; if ( $ method === 'POST' ) { return strtoupper ( $ this -> post -> get ( 'REQUEST_METHOD_OVERRIDE' , $ this -> server -> get ( 'HTTP_X_HTTP_METHOD_OVERRIDE' , 'POST' ) ) ) ; } return $ method ; }
Determines the request method.

@return string
Determines the request method .