@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | |
59 | 59 | if (!empty($statements)) { |
60 | 60 | $content = sprintf('(function(){var elem = document.querySelector(\'[data-wc="%s"]\');%s}());if(document.currentScript)document.currentScript.parentNode.removeChild(document.currentScript);', $id, join('', $statements)); |
61 | - $this->Html->scriptBlock($content, [ 'block' => 'scriptsComponents' ]); |
|
61 | + $this->Html->scriptBlock($content, ['block' => 'scriptsComponents']); |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | return $attributes; |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | public function is(string $tagName, array $properties = [], string $scriptPath = ''): string |
76 | 76 | { |
77 | 77 | if (!empty($scriptPath)) { |
78 | - $this->Html->script($scriptPath, [ 'block' => 'scriptsComponents' ]); |
|
78 | + $this->Html->script($scriptPath, ['block' => 'scriptsComponents']); |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | $options = ['is' => $tagName] + $this->props($properties); |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | public function element(string $tagName, array $properties = [], $scriptPath = ''): string |
95 | 95 | { |
96 | 96 | if (!empty($scriptPath)) { |
97 | - $this->Html->script($scriptPath, [ 'block' => 'scriptsComponents' ]); |
|
97 | + $this->Html->script($scriptPath, ['block' => 'scriptsComponents']); |
|
98 | 98 | } |
99 | 99 | |
100 | 100 | return $this->Html->tag($tagName, '', $this->props($properties)); |