Skip to content

Commit cbb2688

Browse files
author
Dmytro Yushkin
committed
MAGETWO-57426: [Github] Braintree Vault payments causing GET order API to throw error for 2.1.x
- phpmd fixes
1 parent cd29741 commit cbb2688

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

app/code/Magento/Vault/Model/Method/Vault.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ final class Vault implements VaultPaymentInterface
114114
* @param PaymentTokenManagementInterface $tokenManagement
115115
* @param OrderPaymentExtensionInterfaceFactory $paymentExtensionFactory
116116
* @param string $code
117+
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
117118
*/
118119
public function __construct(
119120
ConfigInterface $config,

app/code/Magento/Vault/Test/Unit/Model/Method/VaultTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
use Magento\Vault\Model\Method\Vault;
1919
use Magento\Vault\Model\VaultPaymentInterface;
2020

21+
/**
22+
* Class VaultTest
23+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
24+
*/
2125
class VaultTest extends \PHPUnit_Framework_TestCase
2226
{
2327
/**

dev/tests/api-functional/testsuite/Magento/Sales/Service/V1/OrderListTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ public function testOrderList()
8080
// check what additional information is single dimension array
8181
static::assertEquals(
8282
count($item['payment']['additional_information']),
83-
count($item['payment']['additional_information']), COUNT_RECURSIVE
83+
count($item['payment']['additional_information']),
84+
COUNT_RECURSIVE
8485
);
8586
}
8687
}

0 commit comments

Comments
 (0)