We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 13 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 8 | 
| CRAP Score | 3 | 
| Changes | 0 | ||
| 1 | <?php | ||
| 46 | 29 | public function apply($input): Result | |
| 47 |     { | ||
| 48 | 29 | $isValid = false; | |
| 49 | 29 | $childrenResults = []; | |
| 50 | 29 |         foreach ($this->rules as $rule) { | |
| 51 | 25 | $childResult = $rule->apply($input); | |
| 52 | |||
| 53 | 25 | $isValid = $childResult->isValid() || $isValid; | |
| 54 | 25 | $childrenResults[] = $childResult; | |
| 55 | } | ||
| 56 | |||
| 57 | 29 | return new Result($isValid, $input, $this, [], ...$childrenResults); | |
| 58 | } | ||
| 59 | } | ||
| 60 |