Skip to content

Commit 1c608d7

Browse files
author
Vitaliy Boyko
committed
ENGCOM-20434: refactoring, doc blocks adjustments
1 parent c865bdc commit 1c608d7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/code/Magento/CatalogUrlRewrite/Model/Products/AdaptUrlRewritesToVisibilityAttribute.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ public function __construct(
6161
}
6262

6363
/**
64+
* Process Url Rewrites according to the products visibility attribute
65+
*
6466
* @param array $productIds
6567
* @param int $visibility
6668
* @throws UrlAlreadyExistsException
@@ -104,10 +106,12 @@ public function execute(array $productIds, int $visibility): void
104106
}
105107

106108
/**
109+
* Get Product Models by Id's
110+
*
107111
* @param array $productIds
108112
* @return array
109113
*/
110-
protected function getProductsByIds(array $productIds): array
114+
private function getProductsByIds(array $productIds): array
111115
{
112116
$productCollection = $this->productCollectionFactory->create();
113117
$productCollection->addAttributeToSelect(ProductInterface::VISIBILITY);

0 commit comments

Comments
 (0)