From 1c30336296dbba00f3768ed74dfe84f95f536dd1 Mon Sep 17 00:00:00 2001 From: Ihor Furseyev Date: Tue, 9 Jul 2019 22:49:01 +0300 Subject: [PATCH] #271: [My Account] Code style fixes --- .../Model/Customer/GetAllowedCustomerAttributes.php | 2 +- .../CustomerGraphQl/Model/Customer/UpdateCustomerAccount.php | 1 - .../CustomerGraphQl/Model/Customer/ValidateCustomerData.php | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/code/Magento/CustomerGraphQl/Model/Customer/GetAllowedCustomerAttributes.php b/app/code/Magento/CustomerGraphQl/Model/Customer/GetAllowedCustomerAttributes.php index 0c715a021096b..271f6003167f7 100644 --- a/app/code/Magento/CustomerGraphQl/Model/Customer/GetAllowedCustomerAttributes.php +++ b/app/code/Magento/CustomerGraphQl/Model/Customer/GetAllowedCustomerAttributes.php @@ -66,7 +66,7 @@ public function __construct( * Get allowed customer attributes * * @param array $attributeKeys - * @param $addRequiredAttributes + * @param bool $addRequiredAttributes * * @throws GraphQlInputException * diff --git a/app/code/Magento/CustomerGraphQl/Model/Customer/UpdateCustomerAccount.php b/app/code/Magento/CustomerGraphQl/Model/Customer/UpdateCustomerAccount.php index 5b3eaaf92bb42..da0ab7b2d8844 100644 --- a/app/code/Magento/CustomerGraphQl/Model/Customer/UpdateCustomerAccount.php +++ b/app/code/Magento/CustomerGraphQl/Model/Customer/UpdateCustomerAccount.php @@ -113,7 +113,6 @@ public function execute(CustomerInterface $customer, array $data): void throw new GraphQlNoSuchEntityException(__($exception->getMessage()), $exception); } - $this->saveCustomer->execute($customer); if (isset($data['is_subscribed'])) { diff --git a/app/code/Magento/CustomerGraphQl/Model/Customer/ValidateCustomerData.php b/app/code/Magento/CustomerGraphQl/Model/Customer/ValidateCustomerData.php index 47386e5152347..82759688a6b62 100644 --- a/app/code/Magento/CustomerGraphQl/Model/Customer/ValidateCustomerData.php +++ b/app/code/Magento/CustomerGraphQl/Model/Customer/ValidateCustomerData.php @@ -35,7 +35,7 @@ public function __construct(GetAllowedCustomerAttributes $getAllowedCustomerAttr * Validate customer data * * @param array $customerData - * @param $addRequiredAttributes + * @param bool $addRequiredAttributes * * @return void *