Skip to content

Commit 46124ab

Browse files
committed
AC-1229:: Code Review Fixes
1 parent 6353aa0 commit 46124ab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/code/Magento/Paypal/Model/SdkUrl.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function getUrl(): string
111111
'client-id' => $this->getClientId(),
112112
'locale' => $this->localeResolver->getLocale(),
113113
'currency' => $this->storeManager->getStore()->getBaseCurrencyCode(),
114-
'enable-funding' => $this->getAllowedFunding()
114+
'enable-funding' => $this->getAllowedFunding(),
115115
];
116116

117117
if ($this->areMessagesEnabled()) {
@@ -215,8 +215,9 @@ private function getAllowedFunding(): string
215215
$payLaterActive = (bool)$this->config->getPayLaterConfigValue('experience_active');
216216

217217
// If Pay Later is disabled, paylater parameter will be removed from enable-funding parameter list
218-
if ($payLaterActive === false) {
218+
if (!$payLaterActive) {
219219
unset($this->supportedPaymentMethods['paylater']);
220+
220221
}
221222
return implode(',', $this->supportedPaymentMethods);
222223
}

0 commit comments

Comments
 (0)