diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-10-09 16:47:15 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-10-09 16:47:15 +0200 |
commit | 3ef055ced3d6ea0d2f15ba660602545f477e9c3c (patch) | |
tree | 800dfcf6cd276650cfc6626d641e4fbf65a0bb68 /src/Wallabag/CoreBundle/Command | |
parent | f40c88eb1fa349aab600f9c1c94364f317fe62dd (diff) | |
download | wallabag-3ef055ced3d6ea0d2f15ba660602545f477e9c3c.tar.gz wallabag-3ef055ced3d6ea0d2f15ba660602545f477e9c3c.tar.zst wallabag-3ef055ced3d6ea0d2f15ba660602545f477e9c3c.zip |
CS
Diffstat (limited to 'src/Wallabag/CoreBundle/Command')
-rw-r--r-- | src/Wallabag/CoreBundle/Command/ListUserCommand.php | 2 | ||||
-rw-r--r-- | src/Wallabag/CoreBundle/Command/ShowUserCommand.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Command/ListUserCommand.php b/src/Wallabag/CoreBundle/Command/ListUserCommand.php index 20660d18..68e515da 100644 --- a/src/Wallabag/CoreBundle/Command/ListUserCommand.php +++ b/src/Wallabag/CoreBundle/Command/ListUserCommand.php | |||
@@ -52,7 +52,7 @@ class ListUserCommand extends ContainerAwareCommand | |||
52 | '%s/%s%s user(s) displayed.', | 52 | '%s/%s%s user(s) displayed.', |
53 | count($users), | 53 | count($users), |
54 | $nbUsers, | 54 | $nbUsers, |
55 | $input->getArgument('search') === null ? '' : ' (filtered)' | 55 | null === $input->getArgument('search') ? '' : ' (filtered)' |
56 | ) | 56 | ) |
57 | ); | 57 | ); |
58 | 58 | ||
diff --git a/src/Wallabag/CoreBundle/Command/ShowUserCommand.php b/src/Wallabag/CoreBundle/Command/ShowUserCommand.php index 2dca32c4..a0184267 100644 --- a/src/Wallabag/CoreBundle/Command/ShowUserCommand.php +++ b/src/Wallabag/CoreBundle/Command/ShowUserCommand.php | |||
@@ -56,7 +56,7 @@ class ShowUserCommand extends ContainerAwareCommand | |||
56 | sprintf('Email: %s', $user->getEmail()), | 56 | sprintf('Email: %s', $user->getEmail()), |
57 | sprintf('Display name: %s', $user->getName()), | 57 | sprintf('Display name: %s', $user->getName()), |
58 | sprintf('Creation date: %s', $user->getCreatedAt()->format('Y-m-d H:i:s')), | 58 | sprintf('Creation date: %s', $user->getCreatedAt()->format('Y-m-d H:i:s')), |
59 | sprintf('Last login: %s', $user->getLastLogin() !== null ? $user->getLastLogin()->format('Y-m-d H:i:s') : 'never'), | 59 | sprintf('Last login: %s', null !== $user->getLastLogin() ? $user->getLastLogin()->format('Y-m-d H:i:s') : 'never'), |
60 | sprintf('2FA activated: %s', $user->isTwoFactorAuthentication() ? 'yes' : 'no'), | 60 | sprintf('2FA activated: %s', $user->isTwoFactorAuthentication() ? 'yes' : 'no'), |
61 | ]); | 61 | ]); |
62 | } | 62 | } |