protected function validateSyntax($procedure)
    {
        $input  = new Input();
        $output = new Output();

        $input->set('procedure', $procedure);
        $input->set('engine', $this->engine->toString());

        $validator = $this->procedureLoader->load('validator');
        $validator->run($input, $output);

        $errors = $output->get('errors');

        if (!empty($errors)) {
            throw new SyntaxException('Your procedure failed to compile due to a javascript syntax error', (array) $errors);
        }
    }
protected function validateSyntax($procedure)
    {
        $input  = new Input();
        $output = new Output();

        $input->set('procedure', $procedure);
        $input->set('engine', $this->engine->toString());

        $validator = $this->procedureLoader->load('validator');
        $validator->run($input, $output);

        $errors = $output->get('errors');

        if (!empty($errors)) {
            throw new SyntaxException('Your procedure failed to compile due to a javascript syntax error', (array) $errors);
        }
    }
protected function validateSyntax ( $ procedure ) { $ input = new Input ( ) ; $ output = new Output ( ) ; $ input -> set ( 'procedure' , $ procedure ) ; $ input -> set ( 'engine' , $ this -> engine -> toString ( ) ) ; $ validator = $ this -> procedureLoader -> load ( 'validator' ) ; $ validator -> run ( $ input , $ output ) ; $ errors = $ output -> get ( 'errors' ) ; if ( ! empty ( $ errors ) ) { throw new SyntaxException ( 'Your procedure failed to compile due to a javascript syntax error' , ( array ) $ errors ) ; } }
Validate syntax.

@access protected
@param  string                                      $procedure
@return void
@throws \JonnyW\PhantomJs\Exception\SyntaxException
Validate syntax .