We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 6 | 
| Paths | 9 | 
| Total Lines | 20 | 
| Code Lines | 11 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 9 | 
| CRAP Score | 6.0359 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 42 | |||
| 43 | /** | ||
| 44 |      * {@inheritdoc} | ||
| 45 | */ | ||
| 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 |