You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Command/DemoteUserCommand.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -40,11 +40,11 @@ protected function executeRoleCommand(UserManipulator $manipulator, OutputInterf
40
40
{
41
41
if ($super) {
42
42
$manipulator->demote($username);
43
-
$output->writeln(sprintf('User "%s" has been demoted as a simple user. This change will not apply until the user logs out and back in again.', $username));
43
+
$output->writeln(\sprintf('User "%s" has been demoted as a simple user. This change will not apply until the user logs out and back in again.', $username));
$output->writeln(sprintf('Role "%s" has been removed from user "%s". This change will not apply until the user logs out and back in again.', $role, $username));
45
+
$output->writeln(\sprintf('Role "%s" has been removed from user "%s". This change will not apply until the user logs out and back in again.', $role, $username));
46
46
} else {
47
-
$output->writeln(sprintf('User "%s" didn\'t have "%s" role.', $username, $role));
47
+
$output->writeln(\sprintf('User "%s" didn\'t have "%s" role.', $username, $role));
Copy file name to clipboardExpand all lines: src/Command/PromoteUserCommand.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -40,11 +40,11 @@ protected function executeRoleCommand(UserManipulator $manipulator, OutputInterf
40
40
{
41
41
if ($super) {
42
42
$manipulator->promote($username);
43
-
$output->writeln(sprintf('User "%s" has been promoted as a super administrator. This change will not apply until the user logs out and back in again.', $username));
43
+
$output->writeln(\sprintf('User "%s" has been promoted as a super administrator. This change will not apply until the user logs out and back in again.', $username));
$output->writeln(sprintf('Role "%s" has been added to user "%s". This change will not apply until the user logs out and back in again.', $role, $username));
45
+
$output->writeln(\sprintf('Role "%s" has been added to user "%s". This change will not apply until the user logs out and back in again.', $role, $username));
46
46
} else {
47
-
$output->writeln(sprintf('User "%s" did already have "%s" role.', $username, $role));
47
+
$output->writeln(\sprintf('User "%s" did already have "%s" role.', $username, $role));
0 commit comments