@@ -103,7 +103,7 @@ |
||
| 103 | 103 | |
| 104 | 104 | $radio = $this->getDom()->createElement('input'); |
| 105 | 105 | $radio->setAttribute('type', 'checkbox'); |
| 106 | - $fieldName = $this->isMultiCheckbox ? $field->getName() . '[]' : $field->getName(); |
|
| 106 | + $fieldName = $this->isMultiCheckbox ? $field->getName().'[]' : $field->getName(); |
|
| 107 | 107 | $radio->setAttribute('name', $fieldName); |
| 108 | 108 | $radio->setAttribute('value', $value); |
| 109 | 109 | $text = $this->createText($labelText); |
@@ -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 | }); |
@@ -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 | |