| Total Complexity | 4 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class HoneypotValidator extends ValidatorAbstract |
||
| 8 | { |
||
| 9 | 1 | public function isValid(): bool |
|
| 10 | { |
||
| 11 | 1 | $hash = glsr(Honeypot::class)->hash($this->request->form_id); |
|
| 12 | 1 | $isValid = isset($this->request[$hash]) && empty($this->request[$hash]); |
|
| 13 | 1 | return glsr()->filterBool('validate/honeypot', $isValid, $this->request); |
|
| 14 | } |
||
| 15 | |||
| 16 | 1 | public function performValidation(): void |
|
| 22 | 1 | ); |
|
| 23 | } |
||
| 26 |