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 | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
38 | { |
||
39 | 2 | $this->rule = $rule; |
|
40 | 2 | } |
|
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | 26 | public function validate($input): Result |
|
46 | { |
||
47 | 26 | $ruleResult = $this->rule->validate($input); |
|
48 | 26 | $ruleResult = $ruleResult->invert(); |
|
49 | |||
50 | 26 | return new Result($ruleResult->isValid(), $input, $this, [], $ruleResult); |
|
51 | } |
||
52 | } |
||
53 |