aboutsummaryrefslogtreecommitdiffstats
path: root/core/Controller/UserController.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-03-26 09:30:18 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-03-26 16:34:56 +0100
commitb80ebc96748b45fd2e0ba9323308657c4b00b7ec (patch)
treeec20e0ffa2f86b9b54939a83a785407319f94559 /core/Controller/UserController.php
parent62403d0932be7d620c7bdadc6b4e13eb496fcd6f (diff)
downloadnextcloud-server-b80ebc96748b45fd2e0ba9323308657c4b00b7ec.tar.gz
nextcloud-server-b80ebc96748b45fd2e0ba9323308657c4b00b7ec.zip
Use the short array syntax, everywhere
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
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);