Skip to content

Commit

Permalink
Lets document things correctly... + clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
minesh93 committed Jun 18, 2019
1 parent b161142 commit f29c407
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Collection
*/
private $stockHelper;

/**
/**
* @var StockConfigurationInterface
*/
protected $stockConfig;
Expand Down Expand Up @@ -79,6 +79,8 @@ class Collection
* @param SearchCriteriaBuilder $searchCriteriaBuilder
* @param DataProvider $productDataProvider
* @param MetadataPool $metadataPool
* @param Stock $stockHelper
* @param StockConfigurationInterface $stockConfig
*/
public function __construct(
CollectionFactory $childCollectionFactory,
Expand Down Expand Up @@ -168,7 +170,7 @@ private function fetch() : array
$childCollection->setProductFilter($product);
$childCollection->addAttributeToSelect($attributeData);

if(!$showOutOfStock) {
if (!$showOutOfStock) {
$this->stockHelper->addInStockFilterToCollection($childCollection);
}

Expand Down

0 comments on commit f29c407

Please sign in to comment.