Skip to content

Commit f91201c

Browse files
committed
#19404: Fixed code styles
1 parent 29ec835 commit f91201c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/code/Magento/Newsletter/Controller/Subscriber/NewAction.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Magento\Customer\Model\Session;
1111
use Magento\Customer\Model\Url as CustomerUrl;
1212
use Magento\Framework\App\Action\Context;
13+
use Magento\Framework\App\Action\HttpPostActionInterface;
1314
use Magento\Framework\App\Config\ScopeConfigInterface;
1415
use Magento\Framework\App\ObjectManager;
1516
use Magento\Framework\Exception\LocalizedException;
@@ -22,9 +23,11 @@
2223
use Magento\Newsletter\Model\SubscriberFactory;
2324

2425
/**
26+
* New newsletter subscription action
27+
*
2528
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2629
*/
27-
class NewAction extends SubscriberController
30+
class NewAction extends SubscriberController implements HttpPostActionInterface
2831
{
2932
/**
3033
* @var CustomerAccountManagement
@@ -160,6 +163,8 @@ public function execute()
160163
}
161164

162165
/**
166+
* Get success message
167+
*
163168
* @param int $status
164169
* @return Phrase
165170
*/

0 commit comments

Comments
 (0)