diff options
author | Georg Ehrke <developer@georgehrke.com> | 2020-04-20 14:10:26 +0300 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2020-04-20 14:10:26 +0300 |
commit | ccff7584637f5f1afc1658e08ca6c9425c8961cb (patch) | |
tree | 60e67bca8fec8717c9494a0fd20184a8bbc8c71d /lib/Controller | |
parent | 5baa856c355bbf6f952dc490a830a78ce9903140 (diff) |
Fix PHP Code-Style
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'lib/Controller')
-rw-r--r-- | lib/Controller/PersonalController.php | 5 |
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); } - } |