Skip to content

Commit

Permalink
refactoring - removed method chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
Umar committed Jan 10, 2018
1 parent e1b5040 commit 558f714
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions app/code/Magento/CatalogImportExport/Model/Export/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -1315,15 +1315,12 @@ protected function getCustomOptionsData($productIds)
}
$options = $this->_optionColFactory->create();
/* @var \Magento\Catalog\Model\ResourceModel\Product\Option\Collection $options*/
$options->reset()->addOrder('sort_order', 'ASC')->addTitleToResult(
$storeId
)->addPriceToResult(
$storeId
)->addProductToFilter(
$productIds
)->addValuesToResult(
$storeId
);
$options->reset();
$options->addOrder('sort_order', 'ASC');
$options->addTitleToResult($storeId);
$options->addPriceToResult($storeId);
$options->addProductToFilter($productIds);
$options->addValuesToResult($storeId);

foreach ($options as $option) {
$row = [];
Expand Down

0 comments on commit 558f714

Please sign in to comment.