Skip to content

Commit 6309221

Browse files
author
Stanislav Idolov
committed
Merge remote-tracking branch 'origin/ENGCOM-5926-magento-magento2-24595' into 2.3-develop-express-lane-prs
2 parents bd4b3c4 + d6481e1 commit 6309221

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

app/code/Magento/SalesRule/Model/RulesApplier.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Magento\SalesRule\Model\Rule\Action\Discount\DataFactory;
1515

1616
/**
17-
* Rules Applier Model
17+
* Class RulesApplier
1818
*
1919
* @package Magento\SalesRule\Model\Validator
2020
*/
@@ -65,7 +65,7 @@ public function __construct(
6565
$this->validatorUtility = $utility;
6666
$this->_eventManager = $eventManager;
6767
$this->childrenValidationLocator = $childrenValidationLocator
68-
?: ObjectManager::getInstance()->get(ChildrenValidationLocator::class);
68+
?: ObjectManager::getInstance()->get(ChildrenValidationLocator::class);
6969
$this->discountFactory = $discountDataFactory ?: ObjectManager::getInstance()->get(DataFactory::class);
7070
}
7171

@@ -152,10 +152,10 @@ public function addDiscountDescription($address, $rule)
152152
}
153153

154154
/**
155-
* Apply rule
155+
* Apply Rule
156156
*
157-
* @param \Magento\Quote\Model\Quote\Item\AbstractItem $item
158-
* @param \Magento\SalesRule\Model\Rule $rule
157+
* @param AbstractItem $item
158+
* @param Rule $rule
159159
* @param \Magento\Quote\Model\Quote\Address $address
160160
* @param mixed $couponCode
161161
* @return $this
@@ -296,9 +296,9 @@ protected function eventFix(
296296
}
297297

298298
/**
299-
* Set Applied Rule ids
299+
* Set Applied Rule Ids
300300
*
301-
* @param \Magento\Quote\Model\Quote\Item\AbstractItem $item
301+
* @param AbstractItem $item
302302
* @param int[] $appliedRuleIds
303303
* @return $this
304304
*/

app/code/Magento/SalesRule/Test/Unit/Model/RulesApplierTest.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,19 +231,23 @@ public function dataProviderChildren()
231231
*/
232232
protected function getPreparedItem()
233233
{
234-
/** @var \Magento\Quote\Model\Quote\Address|\PHPUnit_Framework_MockObject_MockObject $address */
234+
/**
235+
* @var Address|PHPUnit_Framework_MockObject_MockObject $address
236+
*/
235237
$address = $this->createPartialMock(
236-
\Magento\Quote\Model\Quote\Address::class,
238+
Address::class,
237239
[
238240
'getQuote',
239241
'setCouponCode',
240242
'setAppliedRuleIds',
241243
'__wakeup'
242244
]
243245
);
244-
/** @var \Magento\Quote\Model\Quote\Item\AbstractItem|\PHPUnit_Framework_MockObject_MockObject $item */
246+
/**
247+
* @var AbstractItem|PHPUnit_Framework_MockObject_MockObject $item
248+
*/
245249
$item = $this->createPartialMock(
246-
\Magento\Quote\Model\Quote\Item::class,
250+
Item::class,
247251
[
248252
'setDiscountAmount',
249253
'setBaseDiscountAmount',

0 commit comments

Comments
 (0)