Skip to content

Commit bea1a3c

Browse files
committed
Fixed coding standard violations
1 parent 85a6c71 commit bea1a3c

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class PaymentTokenFactory implements PaymentTokenFactoryInterface
1919
/**
2020
* @var array
2121
*/
22-
private $tokenTypes = array();
22+
private $tokenTypes = [];
2323

2424
/**
2525
* PaymentTokenFactory constructor.
@@ -43,6 +43,9 @@ public function create($type = null)
4343
throw new \LogicException('There is no such payment token type: ' . $type);
4444
}
4545

46-
return $this->objectManager->create(PaymentTokenInterface::class, ['data' => [PaymentTokenInterface::TYPE => $type]]);
46+
return $this->objectManager->create(
47+
PaymentTokenInterface::class,
48+
['data' => [PaymentTokenInterface::TYPE => $type]]
49+
);
4750
}
4851
}

app/code/Magento/Vault/Test/Unit/Model/AccountPaymentTokenFactoryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ protected function setUp()
3737
{
3838
$objectManager = new ObjectManager($this);
3939

40-
$tokenTypes = array(
40+
$tokenTypes = [
4141
'account' => \Magento\Vault\Api\Data\PaymentTokenFactoryInterface::TOKEN_TYPE_ACCOUNT,
4242
'credit_card' => \Magento\Vault\Api\Data\PaymentTokenFactoryInterface::TOKEN_TYPE_CREDIT_CARD
43-
);
43+
];
4444

4545
$this->paymentToken = $objectManager->getObject(PaymentToken::class);
4646
$this->objectManager = $this->getMock(ObjectManagerInterface::class);

app/code/Magento/Vault/Test/Unit/Model/CreditCardTokenFactoryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ protected function setUp()
3737
{
3838
$objectManager = new ObjectManager($this);
3939

40-
$tokenTypes = array(
40+
$tokenTypes = [
4141
'account' => \Magento\Vault\Api\Data\PaymentTokenFactoryInterface::TOKEN_TYPE_ACCOUNT,
4242
'credit_card' => \Magento\Vault\Api\Data\PaymentTokenFactoryInterface::TOKEN_TYPE_CREDIT_CARD
43-
);
43+
];
4444

4545
$this->paymentToken = $objectManager->getObject(PaymentToken::class);
4646
$this->objectManager = $this->getMock(ObjectManagerInterface::class);

0 commit comments

Comments
 (0)