Skip to content

Commit

Permalink
[PIPRES-468] fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijusCoding committed Nov 26, 2024
1 parent a1345fc commit e067c74
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 29 deletions.
10 changes: 5 additions & 5 deletions src/Provider/PaymentOption/BancontactPaymentOptionProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@

namespace Mollie\Provider\PaymentOption;

use KlarnaPayment\Module\Infrastructure\Context\GlobalShopContext;
use Mollie;
use Mollie\Adapter\Context;
use Mollie\Adapter\LegacyContext;
use Mollie\Api\Types\PaymentMethod;
use Mollie\Provider\CreditCardLogoProvider;
Expand Down Expand Up @@ -108,16 +108,16 @@ public function getPaymentOption(MolPaymentMethod $paymentMethod): PaymentOption
{
$paymentOption = new PaymentOption();

/** @var GlobalShopContext $globalShopContext */
$globalShopContext = $this->module->getService(GlobalShopContext::class);
/** @var Context $shopContext */
$shopContext = $this->module->getService(Context::class);

/** @var PaymentMethodLangRepositoryInterface $paymentMethodLangRepository */
$paymentMethodLangRepository = $this->module->getService(PaymentMethodLangRepositoryInterface::class);

$paymentMethodLangObject = $paymentMethodLangRepository->findOneBy([
'id_method' => $paymentMethod->id_method,
'id_lang' => $globalShopContext->getLanguageId(),
'id_shop' => $globalShopContext->getShopId(),
'id_lang' => $shopContext->getLanguageId(),
'id_shop' => $shopContext->getShopId(),
]);

$paymentOption->setCallToActionText(
Expand Down
12 changes: 5 additions & 7 deletions src/Provider/PaymentOption/BasePaymentOptionProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,14 @@

namespace Mollie\Provider\PaymentOption;

use KlarnaPayment\Module\Infrastructure\Context\GlobalShopContext;
use Mollie;
use Mollie\Adapter\Context;
use Mollie\Adapter\LegacyContext;
use Mollie\Provider\CreditCardLogoProvider;
use Mollie\Provider\OrderTotal\OrderTotalProviderInterface;
use Mollie\Provider\PaymentFeeProviderInterface;
use Mollie\Provider\PaymentMethodTranslationProvider;
use Mollie\Repository\PaymentMethodLangRepositoryInterface;
use Mollie\Service\LanguageService;
use Mollie\Service\PaymentMethodLangService;
use MolPaymentMethod;
use PrestaShop\PrestaShop\Core\Payment\PaymentOption;
use Tools;
Expand Down Expand Up @@ -109,16 +107,16 @@ public function getPaymentOption(MolPaymentMethod $paymentMethod): PaymentOption
{
$paymentOption = new PaymentOption();

/** @var GlobalShopContext $globalShopContext */
$globalShopContext = $this->module->getService(GlobalShopContext::class);
/** @var Context $shopContext */
$shopContext = $this->module->getService(Context::class);

/** @var PaymentMethodLangRepositoryInterface $paymentMethodLangRepository */
$paymentMethodLangRepository = $this->module->getService(PaymentMethodLangRepositoryInterface::class);

$paymentMethodLangObject = $paymentMethodLangRepository->findOneBy([
'id_method' => $paymentMethod->id_method,
'id_lang' => $globalShopContext->getLanguageId(),
'id_shop' => $globalShopContext->getShopId(),
'id_lang' => $shopContext->getLanguageId(),
'id_shop' => $shopContext->getShopId(),
]);

$paymentOption->setCallToActionText(
Expand Down
10 changes: 5 additions & 5 deletions src/Provider/PaymentOption/CreditCardPaymentOptionProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@

namespace Mollie\Provider\PaymentOption;

use KlarnaPayment\Module\Infrastructure\Context\GlobalShopContext;
use MolCustomer;
use Mollie;
use Mollie\Adapter\ConfigurationAdapter;
use Mollie\Adapter\Context;
use Mollie\Adapter\Customer;
use Mollie\Adapter\LegacyContext;
use Mollie\Config\Config;
Expand Down Expand Up @@ -131,16 +131,16 @@ public function getPaymentOption(MolPaymentMethod $paymentMethod): PaymentOption
{
$paymentOption = new PaymentOption();

/** @var GlobalShopContext $globalShopContext */
$globalShopContext = $this->module->getService(GlobalShopContext::class);
/** @var Context $shopContext */
$shopContext = $this->module->getService(Context::class);

/** @var PaymentMethodLangRepositoryInterface $paymentMethodLangRepository */
$paymentMethodLangRepository = $this->module->getService(PaymentMethodLangRepositoryInterface::class);

$paymentMethodLangObject = $paymentMethodLangRepository->findOneBy([
'id_method' => $paymentMethod->id_method,
'id_lang' => $globalShopContext->getLanguageId(),
'id_shop' => $globalShopContext->getShopId(),
'id_lang' => $shopContext->getLanguageId(),
'id_shop' => $shopContext->getShopId(),
]);

$paymentOption->setCallToActionText(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@

namespace Mollie\Provider\PaymentOption;

use KlarnaPayment\Module\Infrastructure\Context\GlobalShopContext;
use MolCustomer;
use Mollie;
use Mollie\Adapter\ConfigurationAdapter;
use Mollie\Adapter\Context;
use Mollie\Adapter\LegacyContext;
use Mollie\Config\Config;
use Mollie\Provider\CreditCardLogoProvider;
Expand Down Expand Up @@ -98,8 +98,6 @@ class CreditCardSingleClickPaymentOptionProvider implements PaymentOptionProvide
private $customer;
/** @var ConfigurationAdapter */
private $configurationAdapter;
/** @var PaymentMethodTranslationProvider $paymentMethodTranslationProvider */
private $paymentMethodTranslationProvider;

public function __construct(
Mollie $module,
Expand Down Expand Up @@ -130,16 +128,16 @@ public function getPaymentOption(MolPaymentMethod $paymentMethod): PaymentOption
{
$paymentOption = new PaymentOption();

/** @var GlobalShopContext $globalShopContext */
$globalShopContext = $this->module->getService(GlobalShopContext::class);
/** @var Context $shopContext */
$shopContext = $this->module->getService(Context::class);

/** @var PaymentMethodLangRepositoryInterface $paymentMethodLangRepository */
$paymentMethodLangRepository = $this->module->getService(PaymentMethodLangRepositoryInterface::class);

$paymentMethodLangObject = $paymentMethodLangRepository->findOneBy([
'id_method' => $paymentMethod->id_method,
'id_lang' => $globalShopContext->getLanguageId(),
'id_shop' => $globalShopContext->getShopId(),
'id_lang' => $shopContext->getLanguageId(),
'id_shop' => $shopContext->getShopId(),
]);

$paymentOption->setCallToActionText(
Expand Down
10 changes: 5 additions & 5 deletions src/Provider/PaymentOption/IdealPaymentOptionProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@

namespace Mollie\Provider\PaymentOption;

use KlarnaPayment\Module\Infrastructure\Context\GlobalShopContext;
use Mollie;
use Mollie\Adapter\Context;
use Mollie\Adapter\LegacyContext;
use Mollie\Provider\CreditCardLogoProvider;
use Mollie\Provider\OrderTotal\OrderTotalProviderInterface;
Expand Down Expand Up @@ -114,16 +114,16 @@ public function getPaymentOption(MolPaymentMethod $paymentMethod): PaymentOption
{
$paymentOption = new PaymentOption();

/** @var GlobalShopContext $globalShopContext */
$globalShopContext = $this->module->getService(GlobalShopContext::class);
/** @var Context $shopContext */
$shopContext = $this->module->getService(Context::class);

/** @var PaymentMethodLangRepositoryInterface $paymentMethodLangRepository */
$paymentMethodLangRepository = $this->module->getService(PaymentMethodLangRepositoryInterface::class);

$paymentMethodLangObject = $paymentMethodLangRepository->findOneBy([
'id_method' => $paymentMethod->id_method,
'id_lang' => $globalShopContext->getLanguageId(),
'id_shop' => $globalShopContext->getShopId(),
'id_lang' => $shopContext->getLanguageId(),
'id_shop' => $shopContext->getShopId(),
]);

$paymentOption->setCallToActionText(
Expand Down

0 comments on commit e067c74

Please sign in to comment.