Completed
Push — master ( 0708bc...621f78 )
by Alberto
37s queued 31s
created
src/View/Helper/WebComponentsHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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));
Please login to merge, or discard this patch.