12
12
use Magento \Framework \Exception \State \UserLockedException ;
13
13
use Magento \Security \Model \SecurityCookie ;
14
14
use Magento \Framework \App \Action \HttpPostActionInterface ;
15
+
15
16
/**
16
17
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
17
18
*/
@@ -25,8 +26,10 @@ class Save extends \Magento\Backend\Controller\Adminhtml\System\Account implemen
25
26
/**
26
27
* Get security cookie
27
28
*
28
- * @deprecated 100.1.0 The method getSecurityCookie() is deprecated and no longer needed.
29
- * Use dependency injection to get an instance of SecurityCookie instead.
29
+ * @deprecated 100.1.0 This method is deprecated because dependency injection should be used instead of
30
+ * directly accessing the SecurityCookie instance.
31
+ * Use dependency injection to get an instance of SecurityCookie.
32
+ * @see \Magento\Backend\Controller\Adminhtml\System\Account::__construct()
30
33
* @return SecurityCookie
31
34
*/
32
35
private function getSecurityCookie ()
@@ -100,13 +103,16 @@ public function execute()
100
103
if ($ countModifiedFields > 1 ) {
101
104
$ lastModifiedField = array_pop ($ modifiedFields );
102
105
$ modifiedFieldsText = implode (', ' , $ modifiedFields );
103
- $ successMessage =
104
- __ ('The %1 and %2 of this account have been modified successfully. ' ,
105
- $ modifiedFieldsText ,$ lastModifiedField );
106
+ $ successMessage = __ (
107
+ 'The %1 and %2 of this account have been modified successfully. ' ,
108
+ $ modifiedFieldsText ,
109
+ $ lastModifiedField
110
+ );
106
111
} else {
107
- $ successMessage =
108
- __ ('The %1 of this account has been modified successfully. ' ,
109
- reset ($ modifiedFields ));
112
+ $ successMessage = __ (
113
+ 'The %1 of this account has been modified successfully. ' ,
114
+ reset ($ modifiedFields )
115
+ );
110
116
}
111
117
$ this ->messageManager ->addSuccessMessage ($ successMessage );
112
118
} else {
0 commit comments