fix style

This commit is contained in:
shibafu
2019-03-14 00:10:09 +09:00
parent be700ab81b
commit 27fc5ee6e8
5 changed files with 8 additions and 4 deletions
+2
View File
@@ -41,11 +41,13 @@ class DemoteUser extends Command
$user = User::where('name', $this->argument('username'))->first();
if ($user === null) {
$this->error('No user with such username');
return 1;
}
if (!$user->is_admin) {
$this->info('@' . $user->name . ' is already an user.');
return 0;
}