From 8fd36cf534238868d507afa1adfc413ee8739214 Mon Sep 17 00:00:00 2001 From: mokaddem Date: Mon, 18 Jan 2021 10:37:48 +0100 Subject: [PATCH] chg: [command:user] Renamed function toggleDisabled --- src/Command/UserCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Command/UserCommand.php b/src/Command/UserCommand.php index 15fb5d4..8efd6d4 100644 --- a/src/Command/UserCommand.php +++ b/src/Command/UserCommand.php @@ -58,7 +58,7 @@ class UserCommand extends Command } else { $confirm = $io->askChoice(__('Do you want to {0} the user {1}', $user->disabled ? __('enable') : __('disable'), $user->username), ['Y', 'N'], 'N'); if ($confirm) { - $user = $this->flipDisable($user); + $user = $this->toggleDisable($user); if ($user) { $io->out(__('User {0}', !$user->disabled ? __('enabled') : __('disabled'))); } else { @@ -112,7 +112,7 @@ class UserCommand extends Command return $this->Users->save($user); } - private function flipDisable($user) + private function toggleDisable($user) { $user->disabled = !$user->disabled; return $this->Users->save($user);