Passed
Pull Request — master (#16)
by
unknown
02:26
created
src/View/Helper/WebComponentsHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
         if (!empty($statements)) {
55 55
             $content = sprintf('(function(){var elem = document.querySelector(\'[data-wc="%s"]\');%s}());if(document.currentScript)document.currentScript.parentNode.removeChild(document.currentScript);', $id, join('', $statements));
56
-            $this->scriptBlock($content, [ 'block' => 'scriptsComponents' ]);
56
+            $this->scriptBlock($content, ['block' => 'scriptsComponents']);
57 57
         }
58 58
 
59 59
         return $attributes;
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     public function is(string $tagName, array $properties = [], string $scriptPath = ''): string
71 71
     {
72 72
         if (!empty($scriptPath)) {
73
-            $this->script($scriptPath, [ 'block' => 'scriptsComponents' ]);
73
+            $this->script($scriptPath, ['block' => 'scriptsComponents']);
74 74
         }
75 75
 
76 76
         $options = ['is' => $tagName] + $this->props($properties);
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     public function element(string $tagName, array $properties = [], $scriptPath = ''): string
90 90
     {
91 91
         if (!empty($scriptPath)) {
92
-            $this->script($scriptPath, [ 'block' => 'scriptsComponents' ]);
92
+            $this->script($scriptPath, ['block' => 'scriptsComponents']);
93 93
         }
94 94
 
95 95
         return $this->tag($tagName, '', $this->props($properties));
Please login to merge, or discard this patch.