File tree Expand file tree Collapse file tree 5 files changed +14
-10
lines changed
app/code/Magento/Newsletter Expand file tree Collapse file tree 5 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ protected function _prepareLayout()
83
83
/**
84
84
* Get the html element for unsubscribe button
85
85
*
86
- * @return $ string
86
+ * @return string
87
87
*/
88
88
public function getUnsubscribeButtonHtml ()
89
89
{
@@ -93,7 +93,7 @@ public function getUnsubscribeButtonHtml()
93
93
/**
94
94
* Get the html element for delete button
95
95
*
96
- * @return $ string
96
+ * @return string
97
97
*/
98
98
public function getDeleteButtonHtml ()
99
99
{
Original file line number Diff line number Diff line change @@ -18,10 +18,11 @@ class MassDelete extends Subscriber
18
18
* @var SubscriberFactory
19
19
*/
20
20
private $ subscriberFactory ;
21
-
21
+
22
22
/**
23
23
* @param Context $context
24
24
* @param FileFactory $fileFactory
25
+ * @param SubscriberFactory|null $subscriberFactory
25
26
*/
26
27
public function __construct (
27
28
Context $ context ,
Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+ declare (strict_types=1 );
6
7
7
8
namespace Magento \Newsletter \Controller \Manage ;
8
9
@@ -65,9 +66,9 @@ public function __construct(
65
66
/**
66
67
* Save newsletter subscription preference action
67
68
*
68
- * @return void|null
69
+ * @return \Magento\Framework\App\ResponseInterface
69
70
*/
70
- public function execute ()
71
+ public function execute (): \ Magento \ Framework \ App \ ResponseInterface
71
72
{
72
73
if (!$ this ->formKeyValidator ->validate ($ this ->getRequest ())) {
73
74
return $ this ->_redirect ('customer/account/ ' );
@@ -110,7 +111,7 @@ public function execute()
110
111
$ this ->messageManager ->addError (__ ('Something went wrong while saving your subscription. ' ));
111
112
}
112
113
}
113
- $ this ->_redirect ('customer/account/ ' );
114
+ return $ this ->_redirect ('customer/account/ ' );
114
115
}
115
116
116
117
/**
@@ -119,7 +120,7 @@ public function execute()
119
120
* @param Customer $customer
120
121
* @return void
121
122
*/
122
- private function setIgnoreValidationFlag ($ customer )
123
+ private function setIgnoreValidationFlag (Customer $ customer ): void
123
124
{
124
125
$ customer ->setData ('ignore_validation_flag ' , true );
125
126
}
Original file line number Diff line number Diff line change 4
4
* Copyright © Magento, Inc. All rights reserved.
5
5
* See COPYING.txt for license details.
6
6
*/
7
+ declare (strict_types=1 );
8
+
7
9
namespace Magento \Newsletter \Controller \Subscriber ;
8
10
9
11
class Confirm extends \Magento \Newsletter \Controller \Subscriber
10
12
{
11
13
/**
12
14
* Subscription confirm action
13
- * @return void
15
+ * @return \Magento\Framework\Controller\Result\Redirect
14
16
*/
15
- public function execute ()
17
+ public function execute (): \ Magento \ Framework \ Controller \ Result \ Redirect
16
18
{
17
19
$ id = (int )$ this ->getRequest ()->getParam ('id ' );
18
20
$ code = (string )$ this ->getRequest ()->getParam ('code ' );
Original file line number Diff line number Diff line change @@ -686,7 +686,7 @@ public function confirm($code)
686
686
* Mark receiving subscriber of queue newsletter
687
687
*
688
688
* @param \Magento\Newsletter\Model\Queue $queue
689
- * @return boolean
689
+ * @return Subscriber
690
690
*/
691
691
public function received (\Magento \Newsletter \Model \Queue $ queue )
692
692
{
You can’t perform that action at this time.
0 commit comments