src/Collector.php
protected function getValidMethod($method)
    {
        $method = strtolower($method);

        if (strpos(self::HTTP_METHODS, $method) === false) {
            throw new MethodNotSupportedException($method);
        }

        return $method;
    }
protected function getValidMethod($method)
    {
        $method = strtolower($method);

        if (strpos(self::HTTP_METHODS, $method) === false) {
            throw new MethodNotSupportedException($method);
        }

        return $method;
    }
protected function getValidMethod ( $ method ) { $ method = strtolower ( $ method ) ; if ( strpos ( self :: HTTP_METHODS , $ method ) === false ) { throw new MethodNotSupportedException ( $ method ) ; } return $ method ; }
Determine if the http method is valid.

@param string $method

@throws MethodNotSupportedException
@return string
Determine if the http method is valid .