| Conditions | 4 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | public function check($value = null): bool |
||
| 38 | { |
||
| 39 | if (!parent::check($value)) { |
||
| 40 | return true; |
||
| 41 | } |
||
| 42 | |||
| 43 | if (!isset($this->against)) { |
||
| 44 | throw new ValidationException(self::ERROR_NOTHING_TO_COMPARE); |
||
| 45 | } |
||
| 46 | |||
| 47 | if ($value === $this->against) |
||
| 48 | return false; |
||
| 49 | |||
| 50 | return true; |
||
| 51 | } |
||
| 53 |