Skip to content

Commit

Permalink
fix PHPMD
Browse files Browse the repository at this point in the history
  • Loading branch information
mariolorenz committed Jan 25, 2024
1 parent bb35bdc commit 2030080
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/Core/ViewConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,11 +292,10 @@ public function getTemplateConfiguration(
}

public function isApplePay(
FrontendController $oView,
?Payment $payment
): bool {
return $this->getServiceFromContainer(JSAPITemplateConfiguration::class)
->isApplePay($oView, $payment);
->isApplePay($payment);
}

/**
Expand Down
1 change: 0 additions & 1 deletion src/Service/JSAPITemplateConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ public function getConfiguration(
}

public function isApplePay(
FrontendController $controller,
?Payment $payment
): bool {
$paymentId = $payment instanceof Payment ? $payment->getId() : '';
Expand Down
2 changes: 1 addition & 1 deletion views/twig/payment/adyen_assets.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
).mount('#{{adyenCreditCard}}-container');
cardComponent.paymentIdViewEl = document.getElementById('payment_{{adyenCreditCard}}').parentElement;
{% elseif isOrderPage %}
{% if oViewConf.isApplePay(oView, payment) %}
{% if oViewConf.isApplePay(payment) %}
const applePayComponent = checkout.create('{{ templateCheckoutCreateId }}', configuration);
applePayComponent.isAvailable()
.then(() => {
Expand Down

0 comments on commit 2030080

Please sign in to comment.