protected function prepareRule($rule)
    {
        if ($rule instanceof Closure) {
            $rule = new ClosureValidationRule($rule);
        }

        if (! is_object($rule) ||
            $rule instanceof RuleContract ||
            ($rule instanceof Exists && $rule->queryCallbacks()) ||
            ($rule instanceof Unique && $rule->queryCallbacks())) {
            return $rule;
        }

        return (string) $rule;
    }
protected function prepareRule($rule)
    {
        if ($rule instanceof Closure) {
            $rule = new ClosureValidationRule($rule);
        }

        if (! is_object($rule) ||
            $rule instanceof RuleContract ||
            ($rule instanceof Exists && $rule->queryCallbacks()) ||
            ($rule instanceof Unique && $rule->queryCallbacks())) {
            return $rule;
        }

        return (string) $rule;
    }
protected function prepareRule ( $ rule ) { if ( $ rule instanceof Closure ) { $ rule = new ClosureValidationRule ( $ rule ) ; } if ( ! is_object ( $ rule ) || $ rule instanceof RuleContract || ( $ rule instanceof Exists && $ rule -> queryCallbacks ( ) ) || ( $ rule instanceof Unique && $ rule -> queryCallbacks ( ) ) ) { return $ rule ; } return ( string ) $ rule ; }
Prepare the given rule for the Validator.

@param  mixed  $rule
@return mixed
Prepare the given rule for the Validator .