summaryrefslogtreecommitdiffstats
path: root/lib/public/AppFramework/Http/JSONResponse.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/AppFramework/Http/JSONResponse.php')
-rw-r--r--lib/public/AppFramework/Http/JSONResponse.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/public/AppFramework/Http/JSONResponse.php b/lib/public/AppFramework/Http/JSONResponse.php
index 1d7a626d5cd..2827cd964ec 100644
--- a/lib/public/AppFramework/Http/JSONResponse.php
+++ b/lib/public/AppFramework/Http/JSONResponse.php
@@ -71,7 +71,7 @@ class JSONResponse extends Response {
*/
public function render() {
$response = json_encode($this->data, JSON_HEX_TAG);
- if($response === false) {
+ if ($response === false) {
throw new \Exception(sprintf('Could not json_encode due to invalid ' .
'non UTF-8 characters in the array: %s', var_export($this->data, true)));
}
@@ -101,5 +101,4 @@ class JSONResponse extends Response {
public function getData() {
return $this->data;
}
-
}