Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
15 | public function build($formId) |
||
16 | { |
||
17 | $honeypot = new Field([ |
||
18 | 'class' => 'glsr-input glsr-input-text', |
||
19 | 'label' => esc_html__('Your review', 'site-reviews'), |
||
|
|||
20 | 'name' => $this->hash($formId), |
||
21 | 'type' => 'text', |
||
22 | ]); |
||
23 | $honeypot->id = $honeypot->id.'-'.$formId; |
||
24 | return glsr(Builder::class)->div([ |
||
25 | 'class' => glsr(Style::class)->classes('field'), |
||
26 | 'style' => 'display:none;', |
||
27 | 'text' => $honeypot->getFieldLabel().$honeypot->getField(), |
||
28 | ]); |
||
51 |