src/Zephyrus/Application/Rules/IterationRules.php
Method nested
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function nested(string $key, array $rules): Rule
{
$resultRule = new Rule(null, "", "nested");
foreach ($rules as $rule) {
if (!($rule instanceof Rule)) {
Method iteration
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static function iteration(array $rules, string $mode = 'values'): Rule
{
$resultRule = new Rule(null, "", ($mode == 'values') ? "each" : "eachKey");
foreach ($rules as $rule) {
if (!($rule instanceof Rule)) {