File tree Expand file tree Collapse file tree 3 files changed +9
-11
lines changed
app/code/Magento/ReleaseNotification
Controller/Adminhtml/Notification
Model/ResourceModel/Viewer Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 7
7
namespace Magento \ReleaseNotification \Controller \Adminhtml \Notification ;
8
8
9
9
use Magento \Backend \App \Action ;
10
+ use Magento \Framework \App \Action \HttpPostActionInterface ;
10
11
use Magento \Framework \Exception \LocalizedException ;
11
12
use Magento \Framework \Controller \ResultFactory ;
12
13
use Magento \ReleaseNotification \Model \ResourceModel \Viewer \Logger as NotificationLogger ;
18
19
* in favor of another in-product messaging mechanism
19
20
* @see Current in-product messaging mechanism
20
21
*/
21
- class MarkUserNotified extends Action
22
+ class MarkUserNotified extends Action implements HttpPostActionInterface
22
23
{
23
24
/**
24
25
* @var ProductMetadataInterface
@@ -86,12 +87,4 @@ public function execute()
86
87
$ resultJson = $ this ->resultFactory ->create (ResultFactory::TYPE_JSON );
87
88
return $ resultJson ->setData ($ responseContent );
88
89
}
89
-
90
- /**
91
- * @return bool
92
- */
93
- protected function _isAllowed ()
94
- {
95
- return parent ::_isAllowed ();
96
- }
97
90
}
Original file line number Diff line number Diff line change 23
23
class Logger
24
24
{
25
25
/**
26
- * Log table name
26
+ * Release notification log table name
27
27
*/
28
- const LOG_TABLE_NAME = 'release_notification_viewer_log ' ;
28
+ public const LOG_TABLE_NAME = 'release_notification_viewer_log ' ;
29
29
30
30
/**
31
31
* @var Resource
Original file line number Diff line number Diff line change @@ -181,20 +181,25 @@ public function getRequestFieldName()
181
181
182
182
/**
183
183
* @inheritdoc
184
+ * phpcs:disable Magento2.CodeAnalysis.EmptyBlock
184
185
*/
185
186
public function addFilter (\Magento \Framework \Api \Filter $ filter )
186
187
{
188
+ // phpcs:ignore Squiz.PHP.NonExecutableCode.ReturnNotRequired
189
+ return ;
187
190
}
188
191
189
192
/**
190
193
* @inheritdoc
194
+ * phpcs:disable Magento2.CodeAnalysis.EmptyBlock
191
195
*/
192
196
public function addOrder ($ field , $ direction )
193
197
{
194
198
}
195
199
196
200
/**
197
201
* @inheritdoc
202
+ * phpcs:disable Magento2.CodeAnalysis.EmptyBlock
198
203
*/
199
204
public function setLimit ($ offset , $ size )
200
205
{
You can’t perform that action at this time.
0 commit comments