| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 39 | 42 | protected function checkRule($againstValue): int |
|
| 40 | { |
||
| 41 | 42 | if (is_array($againstValue)) { |
|
| 42 | 1 | throw new RuleException('Sub-array found. Need set only values to compare!'); |
|
| 43 | } |
||
| 44 | 42 | if (is_object($againstValue)) { |
|
| 45 | 1 | throw new RuleException('Object found. Need set only values to compare!'); |
|
| 46 | } |
||
| 47 | 41 | return intval(strval($againstValue)); |
|
| 48 | } |
||
| 50 |