src/Server.php
private function validRequest()
    {
        // Is a path and template set
        if (empty($this->template) || empty($this->path)) {
            return false;
        }

        // Is the template a valid template
        if (!array_key_exists($this->template, $this->templates)) {
            return false;
        }

        return true;
    }
private function validRequest()
    {
        // Is a path and template set
        if (empty($this->template) || empty($this->path)) {
            return false;
        }

        // Is the template a valid template
        if (!array_key_exists($this->template, $this->templates)) {
            return false;
        }

        return true;
    }
private function validRequest ( ) { // Is a path and template set if ( empty ( $ this -> template ) || empty ( $ this -> path ) ) { return false ; } // Is the template a valid template if ( ! array_key_exists ( $ this -> template , $ this -> templates ) ) { return false ; } return true ; }
Test if the request is valid.

@return bool
Test if the request is valid .