We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 5 | 
| Paths | 6 | 
| Total Lines | 20 | 
| Code Lines | 12 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 11 | 
| CRAP Score | 5 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 49 | 38 | $childrenResults = []; | |
| 50 | 38 |         foreach ($this->rules as $key => $rule) { | |
| 51 | 34 | $childResult = $rule->apply($input); | |
| 52 | |||
| 53 | 34 | $childrenResults[$key] = $childResult; | |
| 54 | |||
| 55 | 34 |             if (!$childResult->isValid()) { | |
| 56 | 25 | continue; | |
| 57 | } | ||
| 58 | |||
| 59 | 26 |             if ($validCount >= 1) { | |
| 60 | 10 | $childrenResults[$key] = $childResult->invert(); | |
| 61 | } | ||
| 62 | |||
| 63 | 26 | ++$validCount; | |
| 64 | } | ||
| 65 | |||
| 66 | 38 | return new Result(($validCount === 1), $input, $this, [], ...$childrenResults); | |
| 67 | } | ||
| 68 | } | ||
| 69 |