We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | 2 | public function assert($input): void |
|
| 21 | { |
||
| 22 | 2 | $validators = $this->getRules(); |
|
| 23 | 2 | $exceptions = $this->validateRules($input); |
|
| 24 | 2 | $numRules = count($validators); |
|
| 25 | 2 | $numExceptions = count($exceptions); |
|
| 26 | 2 | if ($numExceptions === $numRules) { |
|
| 27 | 1 | throw $this->reportError($input)->setRelated($exceptions); |
|
|
|
|||
| 28 | } |
||
| 63 |