mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 18:50:47 -04:00
fix: cs fix and psalm ci related changes
Signed-off-by: yemkareems <yemkareems@gmail.com>
This commit is contained in:
parent
c8c68c3510
commit
33b38c6573
3 changed files with 6 additions and 4 deletions
|
|
@ -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 [];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue