fix: cs fix and psalm ci related changes

Signed-off-by: yemkareems <yemkareems@gmail.com>
feature/add-ability-to-sort-by-last-login
yemkareems 2 weeks ago
parent a8b1a1aee5
commit 1b86b6c7f6
No known key found for this signature in database
GPG Key ID: 4293DA00B9478934

@ -110,7 +110,7 @@ abstract class Backend implements UserInterface {
* @param string $sort
* @return string[] an array of all uids
*/
public function getUsers($search = '', $limit = null, $offset = null, $orderBy = 'lastLogin', $sort = 'DESC'): array {
public function getUsers($search = '', $limit = null, $offset = null, $orderBy = 'lastLogin', $sort = 'DESC') {
return [];
}

@ -275,9 +275,11 @@ class Database extends ABackend implements
$query = $this->dbConn->getQueryBuilder();
$appId = 'settings'; $configKey = 'email';
$appId = 'settings';
$configKey = 'email';
if($orderBy == 'lastLogin') {
$appId = 'login'; $configKey = 'lastLogin';
$appId = 'login';
$configKey = 'lastLogin';
}
$query->select('uid', 'displayname')

@ -63,7 +63,7 @@ interface UserInterface {
* @return string[] an array of all uids
* @since 4.5.0
*/
public function getUsers($search = '', $limit = null, $offset = null, $orderBy = 'lastLogin', $sort = 'DESC'): array;
public function getUsers($search = '', $limit = null, $offset = null, $orderBy = 'lastLogin', $sort = 'DESC');
/**
* check if a user exists

Loading…
Cancel
Save