Passed
Push — develop ( 240327...4ddf62 )
by Andrew
01:20
created
src/helpers/IAnalytics.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     {
98 98
         if (InstantAnalytics::$commercePlugin) {
99 99
             if ($productVariant) {
100
-                 InstantAnalytics::$plugin->commerce->addCommerceProductDetailView($this, $productVariant);
100
+                    InstantAnalytics::$plugin->commerce->addCommerceProductDetailView($this, $productVariant);
101 101
             }
102 102
         } else {
103 103
             Craft::warning(
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
     {
122 122
         if (InstantAnalytics::$commercePlugin) {
123 123
             if ($orderModel) {
124
-                 InstantAnalytics::$plugin->commerce->addCommerceCheckoutStep($this, $orderModel, $step, $option);
124
+                    InstantAnalytics::$plugin->commerce->addCommerceCheckoutStep($this, $orderModel, $step, $option);
125 125
             }
126 126
         } else {
127 127
             Craft::warning(
Please login to merge, or discard this patch.
src/InstantAnalytics.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -126,17 +126,17 @@
 block discarded – undo
126 126
         $commerceFields = [];
127 127
 
128 128
         if (self::$commercePlugin) {
129
-             $productTypes = Commerce::getInstance()->getProductTypes()->getAllProductTypes();
129
+                $productTypes = Commerce::getInstance()->getProductTypes()->getAllProductTypes();
130 130
 
131
-             foreach ($productTypes as $productType) {
132
-                 $productFields = $this->_getPullFieldsFromLayoutId($productType->fieldLayoutId);
133
-                 $commerceFields = array_merge($commerceFields, $productFields);
131
+                foreach ($productTypes as $productType) {
132
+                    $productFields = $this->_getPullFieldsFromLayoutId($productType->fieldLayoutId);
133
+                    $commerceFields = array_merge($commerceFields, $productFields);
134 134
                  
135
-                 if ($productType->hasVariants) {
136
-                     $variantFields = $this->_getPullFieldsFromLayoutId($productType->variantFieldLayoutId);
137
-                     $commerceFields = array_merge($commerceFields, $variantFields);
138
-                 }
139
-             }
135
+                    if ($productType->hasVariants) {
136
+                        $variantFields = $this->_getPullFieldsFromLayoutId($productType->variantFieldLayoutId);
137
+                        $commerceFields = array_merge($commerceFields, $variantFields);
138
+                    }
139
+                }
140 140
         }
141 141
 
142 142
         // Rend the settings template
Please login to merge, or discard this patch.