Completed
Push — develop ( 19dbd4...e4979c )
by Novikov
31:46 queued 07:51
created
Category
Updater/ProductUpdater.php 1 patch
Braces   +8 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,8 +76,14 @@
 block discarded – undo
76 76
 
77 77
         $locale = null;
78 78
         $scope = null;
79
-        if (in_array($attribute, $localizableAttributes)) $locale = $dataLocale; // check if attribute localizable
80
-        if (in_array($attribute, $scopableAttributes)) $scope = $scopeCode; // check if attribute scopable
79
+        if (in_array($attribute, $localizableAttributes)) {
80
+            $locale = $dataLocale;
81
+        }
82
+        // check if attribute localizable
83
+        if (in_array($attribute, $scopableAttributes)) {
84
+            $scope = $scopeCode;
85
+        }
86
+        // check if attribute scopable
81 87
 
82 88
         $attributeValue = $this->prepareAttributeValue($attribute, $attributeValue);
83 89
         $product = $this->productRepository->getFullProduct($productId);
Please login to merge, or discard this patch.