From e9f923e2b4570ddf8c1f842e1fd6925c8e33e18d Mon Sep 17 00:00:00 2001 From: MarijusCoding Date: Wed, 27 Nov 2024 15:20:34 +0200 Subject: [PATCH] [PIPRES-468] shopContext -> context --- .../PaymentOption/BancontactPaymentOptionProvider.php | 8 ++++---- src/Provider/PaymentOption/BasePaymentOptionProvider.php | 8 ++++---- .../PaymentOption/CreditCardPaymentOptionProvider.php | 8 ++++---- .../CreditCardSingleClickPaymentOptionProvider.php | 8 ++++---- src/Provider/PaymentOption/IdealPaymentOptionProvider.php | 8 ++++---- 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/Provider/PaymentOption/BancontactPaymentOptionProvider.php b/src/Provider/PaymentOption/BancontactPaymentOptionProvider.php index eb3a3eeaf..5c998a587 100644 --- a/src/Provider/PaymentOption/BancontactPaymentOptionProvider.php +++ b/src/Provider/PaymentOption/BancontactPaymentOptionProvider.php @@ -108,16 +108,16 @@ public function getPaymentOption(MolPaymentMethod $paymentMethod): PaymentOption { $paymentOption = new PaymentOption(); - /** @var Context $shopContext */ - $shopContext = $this->module->getService(Context::class); + /** @var Context $context */ + $context = $this->module->getService(Context::class); /** @var PaymentMethodLangRepositoryInterface $paymentMethodLangRepository */ $paymentMethodLangRepository = $this->module->getService(PaymentMethodLangRepositoryInterface::class); $paymentMethodLangObject = $paymentMethodLangRepository->findOneBy([ 'id_method' => $paymentMethod->id_method, - 'id_lang' => $shopContext->getLanguageId(), - 'id_shop' => $shopContext->getShopId(), + 'id_lang' => $context->getLanguageId(), + 'id_shop' => $context->getShopId(), ]); $paymentOption->setCallToActionText( diff --git a/src/Provider/PaymentOption/BasePaymentOptionProvider.php b/src/Provider/PaymentOption/BasePaymentOptionProvider.php index 82df062da..f026e365d 100644 --- a/src/Provider/PaymentOption/BasePaymentOptionProvider.php +++ b/src/Provider/PaymentOption/BasePaymentOptionProvider.php @@ -107,16 +107,16 @@ public function getPaymentOption(MolPaymentMethod $paymentMethod): PaymentOption { $paymentOption = new PaymentOption(); - /** @var Context $shopContext */ - $shopContext = $this->module->getService(Context::class); + /** @var Context $context */ + $context = $this->module->getService(Context::class); /** @var PaymentMethodLangRepositoryInterface $paymentMethodLangRepository */ $paymentMethodLangRepository = $this->module->getService(PaymentMethodLangRepositoryInterface::class); $paymentMethodLangObject = $paymentMethodLangRepository->findOneBy([ 'id_method' => $paymentMethod->id_method, - 'id_lang' => $shopContext->getLanguageId(), - 'id_shop' => $shopContext->getShopId(), + 'id_lang' => $context->getLanguageId(), + 'id_shop' => $context->getShopId(), ]); $paymentOption->setCallToActionText( diff --git a/src/Provider/PaymentOption/CreditCardPaymentOptionProvider.php b/src/Provider/PaymentOption/CreditCardPaymentOptionProvider.php index 04cb58e2c..6db0f3b09 100644 --- a/src/Provider/PaymentOption/CreditCardPaymentOptionProvider.php +++ b/src/Provider/PaymentOption/CreditCardPaymentOptionProvider.php @@ -131,16 +131,16 @@ public function getPaymentOption(MolPaymentMethod $paymentMethod): PaymentOption { $paymentOption = new PaymentOption(); - /** @var Context $shopContext */ - $shopContext = $this->module->getService(Context::class); + /** @var Context $context */ + $context = $this->module->getService(Context::class); /** @var PaymentMethodLangRepositoryInterface $paymentMethodLangRepository */ $paymentMethodLangRepository = $this->module->getService(PaymentMethodLangRepositoryInterface::class); $paymentMethodLangObject = $paymentMethodLangRepository->findOneBy([ 'id_method' => $paymentMethod->id_method, - 'id_lang' => $shopContext->getLanguageId(), - 'id_shop' => $shopContext->getShopId(), + 'id_lang' => $context->getLanguageId(), + 'id_shop' => $context->getShopId(), ]); $paymentOption->setCallToActionText( diff --git a/src/Provider/PaymentOption/CreditCardSingleClickPaymentOptionProvider.php b/src/Provider/PaymentOption/CreditCardSingleClickPaymentOptionProvider.php index da1caaa10..e504e2d66 100644 --- a/src/Provider/PaymentOption/CreditCardSingleClickPaymentOptionProvider.php +++ b/src/Provider/PaymentOption/CreditCardSingleClickPaymentOptionProvider.php @@ -128,16 +128,16 @@ public function getPaymentOption(MolPaymentMethod $paymentMethod): PaymentOption { $paymentOption = new PaymentOption(); - /** @var Context $shopContext */ - $shopContext = $this->module->getService(Context::class); + /** @var Context $context */ + $context = $this->module->getService(Context::class); /** @var PaymentMethodLangRepositoryInterface $paymentMethodLangRepository */ $paymentMethodLangRepository = $this->module->getService(PaymentMethodLangRepositoryInterface::class); $paymentMethodLangObject = $paymentMethodLangRepository->findOneBy([ 'id_method' => $paymentMethod->id_method, - 'id_lang' => $shopContext->getLanguageId(), - 'id_shop' => $shopContext->getShopId(), + 'id_lang' => $context->getLanguageId(), + 'id_shop' => $context->getShopId(), ]); $paymentOption->setCallToActionText( diff --git a/src/Provider/PaymentOption/IdealPaymentOptionProvider.php b/src/Provider/PaymentOption/IdealPaymentOptionProvider.php index 109eb236c..3698c6e0d 100644 --- a/src/Provider/PaymentOption/IdealPaymentOptionProvider.php +++ b/src/Provider/PaymentOption/IdealPaymentOptionProvider.php @@ -114,16 +114,16 @@ public function getPaymentOption(MolPaymentMethod $paymentMethod): PaymentOption { $paymentOption = new PaymentOption(); - /** @var Context $shopContext */ - $shopContext = $this->module->getService(Context::class); + /** @var Context $context */ + $context = $this->module->getService(Context::class); /** @var PaymentMethodLangRepositoryInterface $paymentMethodLangRepository */ $paymentMethodLangRepository = $this->module->getService(PaymentMethodLangRepositoryInterface::class); $paymentMethodLangObject = $paymentMethodLangRepository->findOneBy([ 'id_method' => $paymentMethod->id_method, - 'id_lang' => $shopContext->getLanguageId(), - 'id_shop' => $shopContext->getShopId(), + 'id_lang' => $context->getLanguageId(), + 'id_shop' => $context->getShopId(), ]); $paymentOption->setCallToActionText(