Artesaos\Defender\Providers\DefenderServiceProvider::stripParentheses PHP Method

stripParentheses() private method

Strip the parentheses from the given expression.
private stripParentheses ( string $expression ) : string
$expression string
return string
    private function stripParentheses($expression)
    {
        if (Str::startsWith($expression, '(')) {
            $expression = substr($expression, 1, -1);
        }
        return $expression;
    }