| Code Coverage
| Lines | Functions and Methods | Classes and Traits
Total |  | n/a | 0 / 0 |  | n/a | 0 / 0 | CRAP |  | n/a | 0 / 0
Honeypot |  | n/a | 0 / 0 |  | n/a | 0 / 0 | 0 |  | n/a | 0 / 0

1 | <?php
2 |
3 | namespace Config;
4 |
5 | use CodeIgniter\Config\BaseConfig;
6 |
7 | class Honeypot extends BaseConfig
8 | {
9 | /**
10 | * Makes Honeypot visible or not to human
11 | */
12 | public bool $hidden = true;
13 |
14 | /**
15 | * Honeypot Label Content
16 | */
17 | public string $label = 'Fill This Field';
18 |
19 | /**
20 | * Honeypot Field Name
21 | */
22 | public string $name = 'honeypot';
23 |
24 | /**
25 | * Honeypot HTML Template
26 | */
27 | public string $template = '<label>{label}</label><input type="text" name="{name}" value="">';
28 |
29 | /**
30 | * Honeypot container
31 | *
32 | * If you enabled CSP, you can remove `style="display:none"`.
33 | */
34 | public string $container = '<div style="display:none">{template}</div>';
35 |
36 | /**
37 | * The id attribute for Honeypot container tag
38 | *
39 | * Used when CSP is enabled.
40 | */
41 | public string $containerId = 'hpc';
42 | }