src/Request/LushRequest.php
protected function validateInput()
    {
        if (! filter_var($this->payload['url'], FILTER_VALIDATE_URL)) {
            throw new LushException('URL is invalid', 100);
        }

        if (! in_array($this->method, $this->allowedMethods)) {
            throw new LushException(sprintf("Method '%s' is not supported", $this->method), 101);
        }
    }
protected function validateInput()
    {
        if (! filter_var($this->payload['url'], FILTER_VALIDATE_URL)) {
            throw new LushException('URL is invalid', 100);
        }

        if (! in_array($this->method, $this->allowedMethods)) {
            throw new LushException(sprintf("Method '%s' is not supported", $this->method), 101);
        }
    }
protected function validateInput ( ) { if ( ! filter_var ( $ this -> payload [ 'url' ] , FILTER_VALIDATE_URL ) ) { throw new LushException ( 'URL is invalid' , 100 ) ; } if ( ! in_array ( $ this -> method , $ this -> allowedMethods ) ) { throw new LushException ( sprintf ( "Method '%s' is not supported" , $ this -> method ) , 101 ) ; } }
Validate given options.
Validate given options .