diff options
author | Sean Molenaar <sean@m2mobi.com> | 2018-11-29 20:59:46 +0100 |
---|---|---|
committer | Sean Molenaar <sean@m2mobi.com> | 2018-12-14 07:54:43 +0100 |
commit | becce6b7520912257c3d72697a3aefec9923a467 (patch) | |
tree | a2e0da34df11ade7c630e9b681fac6d3b2383918 /lib/Controller/JSONHttpError.php | |
parent | 0f2645145ac31ad77788954c513f391bc4fbb295 (diff) |
Define an official codestyle and adhere to it.
Diffstat (limited to 'lib/Controller/JSONHttpError.php')
-rw-r--r-- | lib/Controller/JSONHttpError.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Controller/JSONHttpError.php b/lib/Controller/JSONHttpError.php index b79b77567..16d80f857 100644 --- a/lib/Controller/JSONHttpError.php +++ b/lib/Controller/JSONHttpError.php @@ -13,7 +13,6 @@ namespace OCA\News\Controller; use \OCP\AppFramework\Http\JSONResponse; - trait JSONHttpError { @@ -24,10 +23,8 @@ trait JSONHttpError * @param int $code the http error code * @return \OCP\AppFramework\Http\JSONResponse */ - public function error(\Exception $exception, $code) + public function error(\Exception $exception, $code) { return new JSONResponse(['message' => $exception->getMessage()], $code); } - - -}
\ No newline at end of file +} |