From 67b2b130a2bc9168d72079ddbb4f3ac15b388152 Mon Sep 17 00:00:00 2001 From: Karoly Gerner Date: Thu, 30 Nov 2017 10:16:03 +0000 Subject: [PATCH] CORE-2209 Renaming method, altering translation key --- .../Zed/Customer/Business/Model/PreConditionChecker.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Spryker/Zed/Customer/Business/Model/PreConditionChecker.php b/src/Spryker/Zed/Customer/Business/Model/PreConditionChecker.php index ea0e83dc..9209d973 100644 --- a/src/Spryker/Zed/Customer/Business/Model/PreConditionChecker.php +++ b/src/Spryker/Zed/Customer/Business/Model/PreConditionChecker.php @@ -47,7 +47,7 @@ public function __construct(CustomerInterface $customer, CustomerToUtilValidateS */ public function checkPreConditions(QuoteTransfer $quoteTransfer, CheckoutResponseTransfer $checkoutResponseTransfer) { - if ($this->isRegisteredCustomer($quoteTransfer)) { + if ($this->hasIdCustomer($quoteTransfer)) { return; } @@ -77,7 +77,7 @@ public function checkPreConditions(QuoteTransfer $quoteTransfer, CheckoutRespons * * @return bool */ - protected function isRegisteredCustomer(QuoteTransfer $quoteTransfer) + protected function hasIdCustomer(QuoteTransfer $quoteTransfer) { return $quoteTransfer->getCustomer() !== null && $quoteTransfer->getCustomer()->getIdCustomer() !== null; }