Skip to content

Commit f29c407

Browse files
committed
Lets document things correctly... + clean up
1 parent b161142 commit f29c407

File tree

1 file changed

+4
-2
lines changed
  • app/code/Magento/ConfigurableProductGraphQl/Model/Variant

1 file changed

+4
-2
lines changed

app/code/Magento/ConfigurableProductGraphQl/Model/Variant/Collection.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class Collection
4848
*/
4949
private $stockHelper;
5050

51-
/**
51+
/**
5252
* @var StockConfigurationInterface
5353
*/
5454
protected $stockConfig;
@@ -79,6 +79,8 @@ class Collection
7979
* @param SearchCriteriaBuilder $searchCriteriaBuilder
8080
* @param DataProvider $productDataProvider
8181
* @param MetadataPool $metadataPool
82+
* @param Stock $stockHelper
83+
* @param StockConfigurationInterface $stockConfig
8284
*/
8385
public function __construct(
8486
CollectionFactory $childCollectionFactory,
@@ -168,7 +170,7 @@ private function fetch() : array
168170
$childCollection->setProductFilter($product);
169171
$childCollection->addAttributeToSelect($attributeData);
170172

171-
if(!$showOutOfStock) {
173+
if (!$showOutOfStock) {
172174
$this->stockHelper->addInStockFilterToCollection($childCollection);
173175
}
174176

0 commit comments

Comments
 (0)