Skip to content

Commit 42d79be

Browse files
Rizwan KhanRizwan Khan
authored andcommitted
AC-11453: newsletter templates and queue validations
1 parent 21339bc commit 42d79be

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

app/code/Magento/Newsletter/Controller/Adminhtml/Queue/Edit.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class Edit extends \Magento\Newsletter\Controller\Adminhtml\Queue implements HttpGetActionInterface
1212
{
1313
/**
14-
* Core registry
14+
* Core registry variable
1515
*
1616
* @var \Magento\Framework\Registry
1717
*/
@@ -31,6 +31,7 @@ public function __construct(\Magento\Backend\App\Action\Context $context, \Magen
3131
* Edit Newsletter queue
3232
*
3333
* @return void
34+
* @SuppressWarnings(PHPMD.UnusedLocalVariable)
3435
*/
3536
public function execute()
3637
{
@@ -61,6 +62,8 @@ public function execute()
6162
}
6263

6364
/**
65+
* Checks the acl permission
66+
*
6467
* @return bool
6568
*/
6669
protected function _isAllowed()

app/code/Magento/Newsletter/Controller/Adminhtml/Template/Edit.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class Edit extends \Magento\Newsletter\Controller\Adminhtml\Template implements HttpGetActionInterface
1212
{
1313
/**
14-
* Core registry
14+
* Registry core variable
1515
*
1616
* @var \Magento\Framework\Registry
1717
*/
@@ -69,6 +69,8 @@ public function execute()
6969
}
7070

7171
/**
72+
* Checks the acl permission
73+
*
7274
* @return bool
7375
*/
7476
protected function _isAllowed()

0 commit comments

Comments
 (0)