1212use Magento \Framework \Exception \State \UserLockedException ;
1313use Magento \Security \Model \SecurityCookie ;
1414use Magento \Framework \App \Action \HttpPostActionInterface ;
15+
1516/**
1617 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1718 */
@@ -25,8 +26,10 @@ class Save extends \Magento\Backend\Controller\Adminhtml\System\Account implemen
2526 /**
2627 * Get security cookie
2728 *
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()
3033 * @return SecurityCookie
3134 */
3235 private function getSecurityCookie ()
@@ -100,13 +103,16 @@ public function execute()
100103 if ($ countModifiedFields > 1 ) {
101104 $ lastModifiedField = array_pop ($ modifiedFields );
102105 $ 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+ );
106111 } 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+ );
110116 }
111117 $ this ->messageManager ->addSuccessMessage ($ successMessage );
112118 } else {
0 commit comments