class NoPipeSeparatedValidationRulesReturnRule implements Rule

Recommend arrays over pipe-separated rule strings returned from a form request's or Data class's rules().

Methods

__construct(ValidationRuleHelper $helper)

Create a new rule instance.

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.

Parameters

ValidationRuleHelper $helper

at line 37
string getNodeType()

Get the node type the rule checks.

Return Value

string

at line 49
array processNode(Node $node, Scope $scope)

Report the pipe-separated rule strings in the arrays rules() returns.

Parameters

Node $node
Scope $scope

Return Value

array