Skip to content

Commit ba1c11c

Browse files
committed
AC-461: Add reCAPTCHA support to coupon code
* Fixed description in Observer & Plugin files
1 parent 69237c5 commit ba1c11c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ReCaptchaCheckoutSalesRule/Observer/CouponCodeObserver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Magento\ReCaptchaUi\Model\RequestHandlerInterface;
1717

1818
/**
19-
* Adds Captcha support for share wishlist
19+
* Add ReCaptcha support for Coupon Code
2020
*/
2121
class CouponCodeObserver implements ObserverInterface
2222
{

ReCaptchaCheckoutSalesRule/Plugin/CouponSetLayoutPlugin.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@
99
use Magento\ReCaptchaUi\Block\ReCaptcha;
1010

1111
/**
12-
* Reset attempts for frontend checkout
12+
* Plugin for adding recaptcha in coupon form
1313
*/
1414
class CouponSetLayoutPlugin
1515
{
1616
/**
17-
* Add Child captcha afterLayout in Coupon form
17+
* Add Child ReCaptcha in Coupon form
1818
*
1919
* @param Coupon $subject
20+
* @return Coupon
21+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
2022
*/
2123
public function afterSetLayout(Coupon $subject): Coupon
2224
{

0 commit comments

Comments
 (0)