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 | 15 | 
| Code Lines | 10 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 9 | 
| CRAP Score | 3 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 46 | 30 | public function validate($input): Result  | 
            |
| 47 |     { | 
            ||
| 48 | 30 | $isValid = true;  | 
            |
| 49 | 30 | $childrenResults = [];  | 
            |
| 50 | 30 |         foreach ($this->rules as $rule) { | 
            |
| 51 | $childResult = $rule  | 
            ||
| 52 | 26 | ->validate($input)  | 
            |
| 53 | 26 | ->invert();  | 
            |
| 54 | |||
| 55 | 26 | $isValid = $isValid && $childResult->isValid();  | 
            |
| 56 | 26 | $childrenResults[] = $childResult;  | 
            |
| 57 | }  | 
            ||
| 58 | |||
| 59 | 30 | return new Result($isValid, $input, $this, [], ...$childrenResults);  | 
            |
| 60 | }  | 
            ||
| 61 | }  | 
            ||
| 62 |