Passed
Push — develop-v4 ( c00934...710879 )
by Andrew
17:07 queued 16s
created
src/ga4/Analytics.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      * @param string $listName
180 180
      * @throws \yii\base\InvalidConfigException
181 181
      */
182
-    public function addCommerceProductImpression(Product|Variant $productVariant, $index, string $listName = 'default') {
182
+    public function addCommerceProductImpression(Product | Variant $productVariant, $index, string $listName = 'default') {
183 183
         InstantAnalytics::$plugin->commerce->addCommerceProductImpression($productVariant, $index, $listName);
184 184
     }
185 185
 
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
      * @deprecated `Analytics::addCommerceProductDetailView()` is deprecated. Use `Analytics::addCommerceProductImpression()` instead.
193 193
      * @throws \yii\base\InvalidConfigException
194 194
      */
195
-    public function addCommerceProductDetailView(Product|Variant $productVariant, $index, string $listName = 'default') {
195
+    public function addCommerceProductDetailView(Product | Variant $productVariant, $index, string $listName = 'default') {
196 196
         Craft::$app->getDeprecator()->log('Analytics::addCommerceProductDetailView()', '`Analytics::addCommerceProductDetailView()` is deprecated. Use `Analytics::addCommerceProductImpression()` instead.');
197 197
         InstantAnalytics::$plugin->commerce->addCommerceProductImpression($productVariant, $index, $listName);
198 198
     }
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
             // Load them up for GA4
339 339
             foreach ($campaignParams as $key => $method) {
340 340
                 $value = $request->getParam($key) ?? $session->get($key) ?? null;
341
-                $method = 'set' . $method;
341
+                $method = 'set'.$method;
342 342
 
343 343
                 $this->$method($value);
344 344
 
Please login to merge, or discard this patch.