src/View/SSTemplateParser.php
protected function validateExtensionBlock($name, $callable, $type)
    {
        if (!is_string($name)) {
            throw new InvalidArgumentException(
                sprintf(
                    "Name argument for %s must be a string",
                    $type
                )
            );
        } elseif (!is_callable($callable)) {
            throw new InvalidArgumentException(
                sprintf(
                    "Callable %s argument named '%s' is not callable",
                    $type,
                    $name
                )
            );
        }
    }
protected function validateExtensionBlock($name, $callable, $type)
    {
        if (!is_string($name)) {
            throw new InvalidArgumentException(
                sprintf(
                    "Name argument for %s must be a string",
                    $type
                )
            );
        } elseif (!is_callable($callable)) {
            throw new InvalidArgumentException(
                sprintf(
                    "Callable %s argument named '%s' is not callable",
                    $type,
                    $name
                )
            );
        }
    }
protected function validateExtensionBlock ( $ name , $ callable , $ type ) { if ( ! is_string ( $ name ) ) { throw new InvalidArgumentException ( sprintf ( "Name argument for %s must be a string" , $ type ) ) ; } elseif ( ! is_callable ( $ callable ) ) { throw new InvalidArgumentException ( sprintf ( "Callable %s argument named '%s' is not callable" , $ type , $ name ) ) ; } }
Ensures that the arguments to addOpenBlock and addClosedBlock are valid
@param $name
@param $callable
@param $type
@throws InvalidArgumentException
Ensures that the arguments to addOpenBlock and addClosedBlock are valid