1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

Better rendering for all core commands

This commit is contained in:
Nicolas Hart 2017-07-29 00:30:22 +02:00
parent 233eb91be4
commit e1b33efb3d
8 changed files with 78 additions and 77 deletions

View file

@ -52,11 +52,11 @@ class ShowUserCommand extends ContainerAwareCommand
private function showUser(User $user)
{
$this->io->listing([
sprintf('Username : %s', $user->getUsername()),
sprintf('Email : %s', $user->getEmail()),
sprintf('Display name : %s', $user->getName()),
sprintf('Creation date : %s', $user->getCreatedAt()->format('Y-m-d H:i:s')),
sprintf('Last login : %s', $user->getLastLogin() !== null ? $user->getLastLogin()->format('Y-m-d H:i:s') : 'never'),
sprintf('Username: %s', $user->getUsername()),
sprintf('Email: %s', $user->getEmail()),
sprintf('Display name: %s', $user->getName()),
sprintf('Creation date: %s', $user->getCreatedAt()->format('Y-m-d H:i:s')),
sprintf('Last login: %s', $user->getLastLogin() !== null ? $user->getLastLogin()->format('Y-m-d H:i:s') : 'never'),
sprintf('2FA activated: %s', $user->isTwoFactorAuthentication() ? 'yes' : 'no'),
]);
}