Skip to content

Commit 047da16

Browse files
committed
Fixes static test failures
1 parent 315dc25 commit 047da16

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/code/Magento/Captcha/Plugin/CheckCaptchaOnStorefront.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class CheckCaptchaOnStorefront
2424
*
2525
* @param HelperCaptcha $helper
2626
* @param HttpContext $httpContext
27+
* @param ScopeConfigInterface $scopeConfig
2728
*/
2829
public function __construct(
2930
private readonly HelperCaptcha $helper,
@@ -46,7 +47,10 @@ public function afterGetTemplate(
4647
?string $result
4748
): string {
4849
// Check the value for recaptcha_frontend/type_for/customer_login
49-
$recaptchaType = $this->scopeConfig->getValue('recaptcha_frontend/type_for/customer_login', ScopeInterface::SCOPE_WEBSITE);
50+
$recaptchaType = $this->scopeConfig->getValue(
51+
'recaptcha_frontend/type_for/customer_login',
52+
ScopeInterface::SCOPE_WEBSITE
53+
);
5054

5155
if ($this->isLoggedIn() || (!$this->helper->getConfig('enable') && $recaptchaType === null)) {
5256
return '';

0 commit comments

Comments
 (0)