dadajuice/zephyrus

View on GitHub
src/Zephyrus/Application/Rules/IterationRules.php

Summary

Maintainability
A
2 hrs
Test Coverage
A
94%

Method nested has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function nested(string $key, array $rules): Rule
    {
        $resultRule = new Rule(null, "", "nested");
        foreach ($rules as $rule) {
            if (!($rule instanceof Rule)) {
Severity: Minor
Found in src/Zephyrus/Application/Rules/IterationRules.php - About 1 hr to fix

    Method iteration has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    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)) {
    Severity: Minor
    Found in src/Zephyrus/Application/Rules/IterationRules.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status