Attempts to apply a set of formatting rules from $_rules to a $params array, where each
formatting rule is applied if the key of the rule in $_rules is present and not empty in
$params. Also performs sanity checking against $params to ensure that no value
matching a rule is present unless the rule check passes.
public static applyRules ( array &$params ) : array | ||
$params | array | An array of route parameters to which rules will be applied. |
return | array | Returns the `$params` array with formatting rules applied to array values. |