protected function callCustomDirective($name, $value)
    {
        if (Str::startsWith($value, '(') && Str::endsWith($value, ')')) {
            $value = Str::substr($value, 1, -1);
        }

        return call_user_func($this->customDirectives[$name], trim($value));
    }
protected function callCustomDirective($name, $value)
    {
        if (Str::startsWith($value, '(') && Str::endsWith($value, ')')) {
            $value = Str::substr($value, 1, -1);
        }

        return call_user_func($this->customDirectives[$name], trim($value));
    }
protected function callCustomDirective ( $ name , $ value ) { if ( Str :: startsWith ( $ value , '(' ) && Str :: endsWith ( $ value , ')' ) ) { $ value = Str :: substr ( $ value , 1 , - 1 ) ; } return call_user_func ( $ this -> customDirectives [ $ name ] , trim ( $ value ) ) ; }
Call the given directive with the given value.

@param  string  $name
@param  string|null  $value
@return string
Call the given directive with the given value .