aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/AppFramework/Controller.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/AppFramework/Controller.php')
-rw-r--r--lib/public/AppFramework/Controller.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/public/AppFramework/Controller.php b/lib/public/AppFramework/Controller.php
index 6642c332d52..f9d53bf1129 100644
--- a/lib/public/AppFramework/Controller.php
+++ b/lib/public/AppFramework/Controller.php
@@ -77,7 +77,7 @@ abstract class Controller {
$this->request = $request;
// default responders
- $this->responders = array(
+ $this->responders = [
'json' => function ($data) {
if ($data instanceof DataResponse) {
$response = new JSONResponse(
@@ -95,7 +95,7 @@ abstract class Controller {
}
return new JSONResponse($data);
}
- );
+ ];
}