Skip to content

Commit 0d9355c

Browse files
committed
ACP2E-3920: fix static errors
1 parent 368ff6f commit 0d9355c

File tree

38 files changed

+59
-89
lines changed

38 files changed

+59
-89
lines changed

ReCaptchaAdminUi/view/adminhtml/web/css/source/_module.less

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
* Copyright 2020 Adobe
33
* All Rights Reserved.
44
*/
5-
5+
/*
6+
* @codingStandardsIgnoreFile
7+
*/
68
.recaptcha_backend_type_for_recaptcha_backend_info_heading_notice,
79
.recaptcha_frontend_type_for_recaptcha_frontend_info_heading_notice {
810
strong {

ReCaptchaCheckout/view/frontend/web/template/payment-recaptcha-container.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1+
<!--
12
/**
23
* Copyright 2020 Adobe
34
* All Rights Reserved.
45
*/
5-
6-
<!--
7-
86
-->
97
<div>
108
<each args="data: getRegion('place-order-recaptcha'), as: 'recaptcha'" render=""></each>

ReCaptchaCheckout/view/frontend/web/template/reCaptcha.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1+
<!--
12
/**
23
* Copyright 2022 Adobe
34
* All Rights Reserved.
45
*/
5-
6-
<!--
7-
86
-->
97
<!-- ko if: (isCheckoutReCaptchaRequiredFor($parents[1]))-->
108
<div class="recaptcha-checkout-place-order" data-bind="{

ReCaptchaContact/Observer/ContactFormObserver.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
use Magento\ReCaptchaUi\Model\IsCaptchaEnabledInterface;
1717
use Magento\ReCaptchaUi\Model\RequestHandlerInterface;
1818

19-
/**
20-
* ContactFormObserver
21-
*/
2219
class ContactFormObserver implements ObserverInterface
2320
{
2421
/**
@@ -52,6 +49,8 @@ public function __construct(
5249
}
5350

5451
/**
52+
* Checking if captcha is enabled for contact form and if so, validate the captcha
53+
*
5554
* @param Observer $observer
5655
* @return void
5756
* @throws LocalizedException

ReCaptchaCustomer/Model/AjaxLogin/CaptchaResponseResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct(SerializerInterface $serializer)
3333
}
3434

3535
/**
36-
* {@inheritdoc}
36+
* @inheritdoc
3737
*
3838
* @param RequestInterface|PlainTextRequestInterface $request
3939
* @return string

ReCaptchaCustomer/Observer/CreateCustomerObserver.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
use Magento\ReCaptchaUi\Model\IsCaptchaEnabledInterface;
1616
use Magento\ReCaptchaUi\Model\RequestHandlerInterface;
1717

18-
/**
19-
* CreateCustomerObserver
20-
*/
2118
class CreateCustomerObserver implements ObserverInterface
2219
{
2320
/**
@@ -51,6 +48,8 @@ public function __construct(
5148
}
5249

5350
/**
51+
* Checking if captcha is enabled for customer create form and if so, validate the captcha
52+
*
5453
* @param Observer $observer
5554
* @return void
5655
* @throws \Magento\Framework\Exception\LocalizedException

ReCaptchaCustomer/Observer/ForgotPasswordObserver.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
use Magento\ReCaptchaUi\Model\IsCaptchaEnabledInterface;
1717
use Magento\ReCaptchaUi\Model\RequestHandlerInterface;
1818

19-
/**
20-
* ForgotPasswordObserver
21-
*/
2219
class ForgotPasswordObserver implements ObserverInterface
2320
{
2421
/**
@@ -52,6 +49,8 @@ public function __construct(
5249
}
5350

5451
/**
52+
* Checking if captcha is enabled for customer forgot password form and if so, validate the captcha
53+
*
5554
* @param Observer $observer
5655
* @return void
5756
* @throws LocalizedException

ReCaptchaCustomer/Observer/LoginObserver.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@
1414
use Magento\Framework\Event\Observer;
1515
use Magento\Framework\Event\ObserverInterface;
1616
use Magento\Framework\Exception\LocalizedException;
17-
use Magento\Framework\Session\SessionManagerInterface;
1817
use Magento\ReCaptchaUi\Model\IsCaptchaEnabledInterface;
1918
use Magento\ReCaptchaUi\Model\RequestHandlerInterface;
2019

2120
/**
22-
* LoginObserver
21+
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
2322
*/
2423
class LoginObserver implements ObserverInterface
2524
{
@@ -62,6 +61,8 @@ public function __construct(
6261
}
6362

6463
/**
64+
* Checking if captcha is enabled for customer login form and if so, validate the captcha
65+
*
6566
* @param Observer $observer
6667
* @return void
6768
* @throws LocalizedException

ReCaptchaCustomer/Plugin/Block/Account/InjectRecaptchaInAuthenticationPopup.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ public function __construct(
5050
}
5151

5252
/**
53+
* Inject reCAPTCHA in authentication popup layout
54+
*
5355
* @param AuthenticationPopup $subject
5456
* @param string $result
5557
* @return string

ReCaptchaCustomer/Test/Api/AccountManagementCaptchaTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Magento\Framework\Webapi\Rest\Request;
1515
use Magento\Integration\Api\CustomerTokenServiceInterface;
1616

17-
1817
/**
1918
* Test class for Magento\Customer\Api\AccountManagementInterface
2019
*
@@ -133,5 +132,4 @@ public function testPasswordReset(): void
133132

134133
$this->_webApiCall($serviceInfo, $requestData);
135134
}
136-
137135
}

0 commit comments

Comments
 (0)