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 | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
18 | 2 | public function assert($input) |
|
19 | { |
||
20 | 2 | $validators = $this->getRules(); |
|
21 | 2 | $exceptions = $this->validateRules($input); |
|
22 | 2 | $numRules = count($validators); |
|
23 | 2 | $numExceptions = count($exceptions); |
|
24 | 2 | if ($numExceptions === $numRules) { |
|
25 | 1 | throw $this->reportError($input)->setRelated($exceptions); |
|
26 | } |
||
27 | |||
28 | 1 | return true; |
|
29 | } |
||
30 | |||
63 |