NoPipeSeparatedValidationRulesReturnRule
class NoPipeSeparatedValidationRulesReturnRule implements Rule
Recommend arrays over pipe-separated rule strings returned from a form request's or Data class's rules().
Methods
string
getNodeType()
Get the node type the rule checks.
array
processNode(Node $node, Scope $scope)
Report the pipe-separated rule strings in the arrays rules() returns.
Details
at line 30
__construct(ValidationRuleHelper $helper)
Create a new rule instance.
at line 37
string
getNodeType()
Get the node type the rule checks.
at line 49
array
processNode(Node $node, Scope $scope)
Report the pipe-separated rule strings in the arrays rules() returns.