Skip to content

Commit 36269dc

Browse files
fix coding-standard
1 parent ed8b2a1 commit 36269dc

File tree

1 file changed

+14
-8
lines changed
  • app/code/Magento/Backend/Controller/Adminhtml/System/Account

1 file changed

+14
-8
lines changed

app/code/Magento/Backend/Controller/Adminhtml/System/Account/Save.php

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use Magento\Framework\Exception\State\UserLockedException;
1313
use Magento\Security\Model\SecurityCookie;
1414
use 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

Comments
 (0)