Skip to content

Commit 7e93eed

Browse files
committed
rename attributeShouldNotBeUpdated() to isAttributeShouldNotBeUpdated()
1 parent 2483f6d commit 7e93eed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/code/Magento/Catalog/Controller/Adminhtml/Product/Initialization/Helper/AttributeFilter.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,22 @@ class AttributeFilter
2828
public function prepareProductAttributes(Product $product, array $productData, array $useDefaults)
2929
{
3030
foreach ($productData as $attribute => $value) {
31-
if ($this->attributeShouldNotBeUpdated($product, $useDefaults, $attribute, $value)) {
31+
if ($this->isAttributeShouldNotBeUpdated($product, $useDefaults, $attribute, $value)) {
3232
unset($productData[$attribute]);
3333
}
3434
}
35-
35+
3636
return $productData;
3737
}
3838

3939
/**
40-
* @param $product
40+
* @param Product $product
4141
* @param $useDefaults
4242
* @param $attribute
4343
* @param $value
4444
* @return bool
4545
*/
46-
protected function attributeShouldNotBeUpdated(Product $product, $useDefaults, $attribute, $value)
46+
private function isAttributeShouldNotBeUpdated(Product $product, $useDefaults, $attribute, $value)
4747
{
4848
$considerUseDefaultsAttribute = !isset($useDefaults[$attribute]) || $useDefaults[$attribute] === "1";
4949

0 commit comments

Comments
 (0)