X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FConsole%2FUser.php;h=eb061ede31b10af8e751f40e80678cb9bd7bf24c;hb=d4a5a8051ad34a7be72238967afb3e6b140afdc8;hp=5cf15747e223be8165fb0851166f7ca4e9e79485;hpb=b21631747714ac2282abfc6d6ac573a3347df11b;p=friendica.git diff --git a/src/Console/User.php b/src/Console/User.php index 5cf15747e2..eb061ede31 100644 --- a/src/Console/User.php +++ b/src/Console/User.php @@ -1,6 +1,6 @@ pConfig = $pConfig; } - protected function doExecute() + protected function doExecute(): int { if ($this->getOption('v')) { $this->out('Class: ' . __CLASS__); @@ -270,7 +270,7 @@ HELP; } /** - * Allows or denys a user based on it's nickname + * Allows or denies a user based on it's nickname * * @param bool $allow True, if the pending user is allowed, false if denies * @@ -310,7 +310,7 @@ HELP; * @return bool True, if the delete was successful * @throws \Exception */ - private function deleteUser() + private function deleteUser(): bool { $user = $this->getUserByNick(1); @@ -370,7 +370,7 @@ HELP; $contact['url'], $contact['email'], Temporal::getRelativeDate($contact['created']), - Temporal::getRelativeDate($contact['login_date']), + Temporal::getRelativeDate($contact['last-activity']), Temporal::getRelativeDate($contact['last-item']), ]); } @@ -396,7 +396,7 @@ HELP; 'nickname', 'email', 'register_date', - 'login_date', + 'last-activity', 'verified', 'blocked', ];