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 | 7 | 
| CRAP Score | 3 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 46 | 2 | public function apply($input): Result  | 
            |
| 47 | 1 |     { | 
            |
| 48 | $isValid = false;  | 
            ||
| 49 | 2 | $childrenResults = [];  | 
            |
| 50 | 2 |         foreach ($this->rules as $rule) { | 
            |
| 51 | 2 | $childResult = $rule->apply($input);  | 
            |
| 52 | |||
| 53 | $isValid = $childResult->isValid() || $isValid;  | 
            ||
| 54 | $childrenResults[] = $childResult;  | 
            ||
| 55 | }  | 
            ||
| 56 | 1 | ||
| 57 | 1 | return new Result($isValid, $input, $this, [], ...$childrenResults);  | 
            |
| 58 | }  | 
            ||
| 59 | }  | 
            ||
| 60 |