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 | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | 5 | public function assert($input) |
|
| 7 | { |
||
| 8 | 5 | $exceptions = $this->validateRules($input); |
|
| 9 | 5 | $numRules = count($this->getRules()); |
|
| 10 | 5 | $numExceptions = count($exceptions); |
|
| 11 | 5 | if ($numRules !== $numExceptions) { |
|
| 12 | 4 | throw $this->reportError($input)->setRelated($exceptions); |
|
| 13 | } |
||
| 14 | |||
| 15 | 1 | return true; |
|
| 16 | } |
||
| 17 | |||
| 29 |