Skip to content

Commit a445f97

Browse files
author
Igor Melnikov
committed
MAGETWO-50549: Create Hydrator that allows convert data interface to array and array to data interface
Fixing tests and annotation
1 parent e28fa69 commit a445f97

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/code/Magento/ConfigurableProduct/Model/Product/Type/Configurable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,11 +534,11 @@ public function getUsedProducts($product, $requiredAttributeIds = null)
534534

535535
foreach ($collection as $item) {
536536
/** @var \Magento\Catalog\Model\Product $item */
537-
$this->getGalleryReadHandler()->execute('', $item);
537+
$this->getGalleryReadHandler()->execute($item);
538538
$usedProducts[] = $item;
539539
}
540540

541-
$product->setData($this->_usedProducts, $usedProducts);
541+
$prodgiuct->setData($this->_usedProducts, $usedProducts);
542542
}
543543
\Magento\Framework\Profiler::stop('CONFIGURABLE:' . __METHOD__);
544544
return $product->getData($this->_usedProducts);

app/code/Magento/Paypal/Helper/Shortcut/CheckoutValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function validate($code, $isInCatalog)
5454
}
5555

5656
/**
57-
* Сhecks payment method and quote availability
57+
* Checks payment method and quote availability
5858
*
5959
* @param string $paymentCode
6060
* @param bool $isInCatalog

app/code/Magento/Paypal/Helper/Shortcut/Validator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function isPriceOrSetAvailable($isInCatalog)
111111
}
112112

113113
/**
114-
* Сhecks payment method and quote availability
114+
* Checks payment method and quote availability
115115
*
116116
* @param string $paymentCode
117117
* @return bool

0 commit comments

Comments
 (0)