diff --git a/src/app/Console/Commands/UserStatus.php b/src/app/Console/Commands/UserStatus.php index bc5828be..70b7c885 100644 --- a/src/app/Console/Commands/UserStatus.php +++ b/src/app/Console/Commands/UserStatus.php @@ -1,64 +1,63 @@ argument('user'))->first(); if (!$user) { return 1; } $statuses = [ 'active' => User::STATUS_ACTIVE, 'suspended' => User::STATUS_SUSPENDED, 'deleted' => User::STATUS_DELETED, 'ldapReady' => User::STATUS_LDAP_READY, 'imapReady' => User::STATUS_IMAP_READY, - 'degraded' => User::STATUS_DEGRADED, ]; foreach ($statuses as $text => $bit) { $func = 'is' . \ucfirst($text); $this->info(sprintf("%d %s: %s", $bit, $text, $user->$func())); } $this->info("In total: {$user->status}"); } }