fix: cs fix and psalm ci related changes

Signed-off-by: yemkareems <yemkareems@gmail.com>
This commit is contained in:
yemkareems 2024-05-08 14:47:55 +05:30
parent c8c68c3510
commit 33b38c6573
3 changed files with 6 additions and 4 deletions

View file

@ -93,7 +93,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 [];
}

View file

@ -238,9 +238,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')

View file

@ -45,7 +45,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