Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/privacy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2020-04-20 14:10:26 +0300
committerGeorg Ehrke <developer@georgehrke.com>2020-04-20 14:10:26 +0300
commitccff7584637f5f1afc1658e08ca6c9425c8961cb (patch)
tree60e67bca8fec8717c9494a0fd20184a8bbc8c71d /lib/Controller
parent5baa856c355bbf6f952dc490a830a78ce9903140 (diff)
Fix PHP Code-Style
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'lib/Controller')
-rw-r--r--lib/Controller/PersonalController.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Controller/PersonalController.php b/lib/Controller/PersonalController.php
index 4b94075..caac9cd 100644
--- a/lib/Controller/PersonalController.php
+++ b/lib/Controller/PersonalController.php
@@ -79,7 +79,7 @@ class PersonalController extends Controller {
$adminUsers = $adminGroup->getUsers();
$uids = [];
- foreach($adminUsers as $adminUser) {
+ foreach ($adminUsers as $adminUser) {
if (!$adminUser->isEnabled()) {
continue;
}
@@ -96,7 +96,7 @@ class PersonalController extends Controller {
->from('privacy_admins');
$stmt = $query->execute();
- foreach($stmt->fetchAll(\PDO::FETCH_ASSOC) as $row) {
+ foreach ($stmt->fetchAll(\PDO::FETCH_ASSOC) as $row) {
$uids[] = [
'id' => (int)$row['id'],
'displayname' => (string)$row['displayname'],
@@ -106,5 +106,4 @@ class PersonalController extends Controller {
return new JSONResponse($uids, Http::STATUS_OK);
}
-
}