diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-14 17:32:49 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-14 17:32:49 +0200 |
commit | 160a0dfebaeb21cc75d7166dfbac6d0ef1a51460 (patch) | |
tree | 28e2555c97462d60356ef933d5c71c5326649747 /controller/jsonhttperror.php | |
parent | acc2df1251a1c1b9ec5ede13bdf46d516dc64b0d (diff) |
convert array() to []
Diffstat (limited to 'controller/jsonhttperror.php')
-rw-r--r-- | controller/jsonhttperror.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/controller/jsonhttperror.php b/controller/jsonhttperror.php index b841ba5b5..962520b6a 100644 --- a/controller/jsonhttperror.php +++ b/controller/jsonhttperror.php @@ -23,11 +23,8 @@ trait JSONHttpError { * @param int the http error code * @return \OCP\AppFramework\Http\JSONResponse */ - public function error($exception, $code) { - return new JSONResponse( - array('message' => $exception->getMessage()), - $code - ); + public function error(\Exception $exception, $code) { + return new JSONResponse(['message' => $exception->getMessage()], $code); } |