@@ -53,7 +53,8 @@ |
||
53 | 53 | /** |
54 | 54 | * @param FieldInterface $field |
55 | 55 | * @param $value |
56 | - * @param $labelText |
|
56 | + * @param $labelText |
|
57 | + * @param boolean $inline |
|
57 | 58 | * @return DOMElement |
58 | 59 | */ |
59 | 60 | private function processOption(FieldInterface $field, $value, $labelText, $inline) |
@@ -2,13 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace Del\Form\Renderer\Field; |
4 | 4 | |
5 | -use Del\Form\Field\FieldInterface; |
|
6 | -use Del\Form\Field\Radio; |
|
7 | -use DOMDocumentFragment; |
|
8 | -use DOMElement; |
|
9 | -use DOMNode; |
|
10 | -use DOMText; |
|
11 | -use InvalidArgumentException; |
|
5 | +use Del\Form\Field\FieldInterface; |
|
6 | +use Del\Form\Field\Radio; |
|
7 | +use DOMDocumentFragment; |
|
8 | +use DOMElement; |
|
9 | +use DOMNode; |
|
10 | +use InvalidArgumentException; |
|
12 | 11 | use LogicException; |
13 | 12 | |
14 | 13 | class RadioRender extends AbstractFieldRender implements FieldRendererInterface |
@@ -31,12 +31,12 @@ |
||
31 | 31 | |
32 | 32 | public function render(): string |
33 | 33 | { |
34 | - return '<script src="https://www.google.com/recaptcha/api.js?render=' . $this->siteKey . '"></script> |
|
34 | + return '<script src="https://www.google.com/recaptcha/api.js?render='.$this->siteKey.'"></script> |
|
35 | 35 | <script> |
36 | 36 | $(document).ready(function(){ |
37 | 37 | $(\'#captcha\').parent().parent().parent().hide(); |
38 | 38 | grecaptcha.ready(function() { |
39 | - grecaptcha.execute(\'' . $this->siteKey . '\', {action: \'homepage\'}).then(function(token) { |
|
39 | + grecaptcha.execute(\'' . $this->siteKey.'\', {action: \'homepage\'}).then(function(token) { |
|
40 | 40 | $(\'#captcha\').val(token); |
41 | 41 | }); |
42 | 42 | }); |
@@ -73,9 +73,9 @@ |
||
73 | 73 | { |
74 | 74 | $word = ''; |
75 | 75 | |
76 | - for ($x = 0; $x < $this->length; $x ++) { |
|
77 | - $word .= chr(rand(97, 122)); |
|
78 | - } |
|
76 | + for ($x = 0; $x < $this->length; $x ++) { |
|
77 | + $word .= chr(rand(97, 122)); |
|
78 | + } |
|
79 | 79 | |
80 | 80 | return $word; |
81 | 81 | } |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | $word = $this->word; |
64 | 64 | $figlet = new Figlet(); |
65 | 65 | |
66 | - return '<div class="mono">' . ($figlet->render($word)) . '</div>'; |
|
66 | + return '<div class="mono">'.($figlet->render($word)).'</div>'; |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | /** |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | { |
74 | 74 | $word = ''; |
75 | 75 | |
76 | - for ($x = 0; $x < $this->length; $x ++) { |
|
76 | + for ($x = 0; $x < $this->length; $x++) { |
|
77 | 77 | $word .= chr(rand(97, 122)); |
78 | 78 | } |
79 | 79 |