From 6925546abeab5e75b0f9bf997db7f5062775e230 Mon Sep 17 00:00:00 2001 From: Oleh Usik Date: Tue, 28 Jul 2020 22:52:06 +0300 Subject: [PATCH] minor fix --- .../Model/Plugin/Cart/PayflowPro/SetPaymentMethodOnCart.php | 3 ++- .../Magento/QuoteGraphQl/Model/Cart/SetPaymentMethodOnCart.php | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/PaypalGraphQl/Model/Plugin/Cart/PayflowPro/SetPaymentMethodOnCart.php b/app/code/Magento/PaypalGraphQl/Model/Plugin/Cart/PayflowPro/SetPaymentMethodOnCart.php index 30f57f898f070..7ca4d41cfd33a 100644 --- a/app/code/Magento/PaypalGraphQl/Model/Plugin/Cart/PayflowPro/SetPaymentMethodOnCart.php +++ b/app/code/Magento/PaypalGraphQl/Model/Plugin/Cart/PayflowPro/SetPaymentMethodOnCart.php @@ -60,7 +60,8 @@ public function afterExecute( ): void { $paymentData = $this->additionalDataProviderPool->getData(Config::METHOD_PAYFLOWPRO, $paymentData); $cartCustomerId = (int)$cart->getCustomerId(); - if ($cartCustomerId === 0 && array_key_exists(PayflowProSetCcData::IS_ACTIVE_PAYMENT_TOKEN_ENABLER, $paymentData)) { + if ($cartCustomerId === 0 && + array_key_exists(PayflowProSetCcData::IS_ACTIVE_PAYMENT_TOKEN_ENABLER, $paymentData)) { $payment = $cart->getPayment(); $payment->unsAdditionalInformation(PayflowProSetCcData::IS_ACTIVE_PAYMENT_TOKEN_ENABLER); $payment->save(); diff --git a/app/code/Magento/QuoteGraphQl/Model/Cart/SetPaymentMethodOnCart.php b/app/code/Magento/QuoteGraphQl/Model/Cart/SetPaymentMethodOnCart.php index 0fee0f2ae1549..4deb794761efb 100644 --- a/app/code/Magento/QuoteGraphQl/Model/Cart/SetPaymentMethodOnCart.php +++ b/app/code/Magento/QuoteGraphQl/Model/Cart/SetPaymentMethodOnCart.php @@ -59,7 +59,6 @@ public function __construct( * @param array $paymentData * @throws GraphQlInputException * @throws GraphQlNoSuchEntityException - * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function execute(Quote $cart, array $paymentData): void {