summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryemkareems <yemkareems@gmail.com>2024-05-08 14:47:55 +0530
committeryemkareems <yemkareems@gmail.com>2024-07-08 15:42:55 +0530
commit33b38c6573cbd197989539601ddfcb4524eb4c48 (patch)
treea1f9ce43cf18b59c7a62e6b8c2ec91a23366fa74
parentc8c68c3510d1d2ccd73ff5a351ac3b1e5c5a2c5a (diff)
downloadnextcloud-server-33b38c6573cbd197989539601ddfcb4524eb4c48.tar.gz
nextcloud-server-33b38c6573cbd197989539601ddfcb4524eb4c48.zip
fix: cs fix and psalm ci related changes
Signed-off-by: yemkareems <yemkareems@gmail.com>
-rw-r--r--lib/private/User/Backend.php2
-rw-r--r--lib/private/User/Database.php6
-rw-r--r--lib/public/UserInterface.php2
3 files changed, 6 insertions, 4 deletions
diff --git a/lib/private/User/Backend.php b/lib/private/User/Backend.php
index b21db079d54..d58092feac1 100644
--- a/lib/private/User/Backend.php
+++ b/lib/private/User/Backend.php
@@ -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 [];
}
diff --git a/lib/private/User/Database.php b/lib/private/User/Database.php
index cb7988783e3..6a1861e5dba 100644
--- a/lib/private/User/Database.php
+++ b/lib/private/User/Database.php
@@ -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')
diff --git a/lib/public/UserInterface.php b/lib/public/UserInterface.php
index 3f42d17383a..765da3a87a2 100644
--- a/lib/public/UserInterface.php
+++ b/lib/public/UserInterface.php
@@ -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