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