summaryrefslogtreecommitdiffstats
path: root/core/Controller/UserController.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/Controller/UserController.php')
-rw-r--r--core/Controller/UserController.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Controller/UserController.php b/core/Controller/UserController.php
index 23b2eda4e26..54c5202a59f 100644
--- a/core/Controller/UserController.php
+++ b/core/Controller/UserController.php
@@ -53,7 +53,7 @@ class UserController extends Controller {
* @return JSONResponse
*/
public function getDisplayNames($users) {
- $result = array();
+ $result = [];
foreach ($users as $user) {
$userObject = $this->userManager->get($user);
@@ -64,10 +64,10 @@ class UserController extends Controller {
}
}
- $json = array(
+ $json = [
'users' => $result,
'status' => 'success'
- );
+ ];
return new JSONResponse($json);