Skip to content

Commit 6925546

Browse files
committed
minor fix
1 parent 986d5b1 commit 6925546

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/PaypalGraphQl/Model/Plugin/Cart/PayflowPro/SetPaymentMethodOnCart.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ public function afterExecute(
6060
): void {
6161
$paymentData = $this->additionalDataProviderPool->getData(Config::METHOD_PAYFLOWPRO, $paymentData);
6262
$cartCustomerId = (int)$cart->getCustomerId();
63-
if ($cartCustomerId === 0 && array_key_exists(PayflowProSetCcData::IS_ACTIVE_PAYMENT_TOKEN_ENABLER, $paymentData)) {
63+
if ($cartCustomerId === 0 &&
64+
array_key_exists(PayflowProSetCcData::IS_ACTIVE_PAYMENT_TOKEN_ENABLER, $paymentData)) {
6465
$payment = $cart->getPayment();
6566
$payment->unsAdditionalInformation(PayflowProSetCcData::IS_ACTIVE_PAYMENT_TOKEN_ENABLER);
6667
$payment->save();

app/code/Magento/QuoteGraphQl/Model/Cart/SetPaymentMethodOnCart.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ public function __construct(
5959
* @param array $paymentData
6060
* @throws GraphQlInputException
6161
* @throws GraphQlNoSuchEntityException
62-
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
6362
*/
6463
public function execute(Quote $cart, array $paymentData): void
6564
{

0 commit comments

Comments
 (0)