From aef0f96fdc93dbfe01817426178223b73aae5088 Mon Sep 17 00:00:00 2001 From: Oleh Usik Date: Tue, 23 Jun 2020 10:01:49 +0300 Subject: [PATCH] fix static issues --- .../Magento/PaypalGraphQl/Observer/PayflowProSetCcData.php | 3 ++- app/code/Magento/PaypalGraphQl/composer.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/PaypalGraphQl/Observer/PayflowProSetCcData.php b/app/code/Magento/PaypalGraphQl/Observer/PayflowProSetCcData.php index 9bb8dfc0589fa..d45db9ae45a32 100644 --- a/app/code/Magento/PaypalGraphQl/Observer/PayflowProSetCcData.php +++ b/app/code/Magento/PaypalGraphQl/Observer/PayflowProSetCcData.php @@ -53,6 +53,7 @@ public function __construct( * @param Observer $observer * * @throws GraphQlInputException + * @SuppressWarnings(PHPMD.CookieAndSessionMisuse) */ public function execute(Observer $observer) { @@ -64,7 +65,7 @@ public function execute(Observer $observer) return; } - if($this->customerSession->isLoggedIn() && $this->isPayflowProVaultEnable()) { + if ($this->customerSession->isLoggedIn() && $this->isPayflowProVaultEnable()) { if (!isset($additionalData[self::IS_ACTIVE_PAYMENT_TOKEN_ENABLER])) { throw new GraphQlInputException( __('Required parameter "is_active_payment_token_enabler" is missing.') diff --git a/app/code/Magento/PaypalGraphQl/composer.json b/app/code/Magento/PaypalGraphQl/composer.json index 8d012be3492dd..6cf790dcfc0f7 100644 --- a/app/code/Magento/PaypalGraphQl/composer.json +++ b/app/code/Magento/PaypalGraphQl/composer.json @@ -13,7 +13,8 @@ "magento/module-quote-graph-ql": "*", "magento/module-sales": "*", "magento/module-payment": "*", - "magento/module-store": "*" + "magento/module-store": "*", + "magento/module-customer": "*" }, "suggest": { "magento/module-graph-ql": "*"