src/Router.php
public function findRequestMethod()
	{
		$method = $_SERVER["REQUEST_METHOD"];

		if ($method === "POST") {
			if (isset($_SERVER["X-HTTP-Method-Override"])) {
				$method = $_SERVER["X-HTTP-Method-Override"];
			}
		}

		return $this->method = $method;
	}
public function findRequestMethod()
	{
		$method = $_SERVER["REQUEST_METHOD"];

		if ($method === "POST") {
			if (isset($_SERVER["X-HTTP-Method-Override"])) {
				$method = $_SERVER["X-HTTP-Method-Override"];
			}
		}

		return $this->method = $method;
	}
public function findRequestMethod ( ) { $ method = $ _SERVER [ "REQUEST_METHOD" ] ; if ( $ method === "POST" ) { if ( isset ( $ _SERVER [ "X-HTTP-Method-Override" ] ) ) { $ method = $ _SERVER [ "X-HTTP-Method-Override" ] ; } } return $ this -> method = $ method ; }
Automatically find the request method
@return string Found method
Automatically find the request method