Skip to content

Commit b3a21c4

Browse files
Reduced the variable name length as per codacy pr quality review
1 parent 2c3a0ef commit b3a21c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/ConfigurableProduct/Setup/Patch/Data/UpdateManufacturerAttribute.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ public function apply()
5151
/** @var EavSetup $eavSetup */
5252
$eavSetup = $this->eavSetupFactory->create(['setup' => $this->moduleDataSetup]);
5353

54-
if($manufacturerAttribute = $eavSetup->getAttribute(
54+
if($manufacturer = $eavSetup->getAttribute(
5555
\Magento\Catalog\Model\Product::ENTITY,
5656
'manufacturer',
5757
'apply_to')
5858
) {
5959
$relatedProductTypes = explode(
6060
',',
61-
$manufacturerAttribute
61+
$manufacturer
6262
);
6363

6464
if (!in_array(Configurable::TYPE_CODE, $relatedProductTypes)) {

0 commit comments

Comments
 (0)