Skip to content

Commit 5227ef2

Browse files
committed
MAGETWO-63910: Create infrastructure for mapper in Payment module
- Refactored code according to code review changes.
1 parent 5300fff commit 5227ef2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

app/code/Magento/Braintree/Model/AvsEmsCodeMapper.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,10 @@ class AvsEmsCodeMapper implements PaymentVerificationInterface
4343

4444
/**
4545
* Gets payment AVS verification code.
46-
* Throws an exception if specified order payment has different payment method code.
4746
*
4847
* @param OrderPaymentInterface $orderPayment
4948
* @return string
50-
* @throws \InvalidArgumentException
49+
* @throws \InvalidArgumentException If specified order payment has different payment method code.
5150
*/
5251
public function getCode(OrderPaymentInterface $orderPayment)
5352
{

app/code/Magento/Braintree/Model/CvvEmsCodeMapper.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,10 @@ class CvvEmsCodeMapper implements PaymentVerificationInterface
4242

4343
/**
4444
* Gets payment CVV verification code.
45-
* Throws an exception if specified order payment has different payment method code.
4645
*
4746
* @param OrderPaymentInterface $orderPayment
4847
* @return string
49-
* @throws \Exception
48+
* @throws \InvalidArgumentException If specified order payment has different payment method code.
5049
*/
5150
public function getCode(OrderPaymentInterface $orderPayment)
5251
{

0 commit comments

Comments
 (0)