Skip to content

Commit d189b69

Browse files
committed
#22073: Static test fix.
1 parent 5410e07 commit d189b69

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

app/code/Magento/Downloadable/Observer/SaveDownloadableOrderItemObserver.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
use Magento\Store\Model\ScopeInterface;
1010

1111
/**
12+
* Saves data from order to purchased links.
13+
*
1214
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1315
*/
1416
class SaveDownloadableOrderItemObserver implements ObserverInterface
@@ -159,7 +161,7 @@ public function execute(\Magento\Framework\Event\Observer $observer)
159161
\Magento\Sales\Model\Order\Item::STATUS_PENDING == $orderStatusToEnableItem ?
160162
\Magento\Downloadable\Model\Link\Purchased\Item::LINK_STATUS_AVAILABLE :
161163
\Magento\Downloadable\Model\Link\Purchased\Item::LINK_STATUS_PENDING
162-
)->setCreatedAt(
164+
)->setCreatedAt(
163165
$orderItem->getCreatedAt()
164166
)->setUpdatedAt(
165167
$orderItem->getUpdatedAt()
@@ -173,6 +175,8 @@ public function execute(\Magento\Framework\Event\Observer $observer)
173175
}
174176

175177
/**
178+
* Create purchased model.
179+
*
176180
* @return \Magento\Downloadable\Model\Link\Purchased
177181
*/
178182
protected function _createPurchasedModel()
@@ -181,6 +185,8 @@ protected function _createPurchasedModel()
181185
}
182186

183187
/**
188+
* Create product model.
189+
*
184190
* @return \Magento\Catalog\Model\Product
185191
*/
186192
protected function _createProductModel()
@@ -189,6 +195,8 @@ protected function _createProductModel()
189195
}
190196

191197
/**
198+
* Create purchased item model.
199+
*
192200
* @return \Magento\Downloadable\Model\Link\Purchased\Item
193201
*/
194202
protected function _createPurchasedItemModel()
@@ -197,6 +205,8 @@ protected function _createPurchasedItemModel()
197205
}
198206

199207
/**
208+
* Create items collection.
209+
*
200210
* @return \Magento\Downloadable\Model\ResourceModel\Link\Purchased\Item\Collection
201211
*/
202212
protected function _createItemsCollection()

0 commit comments

Comments
 (0)