@@ -19,12 +19,12 @@ |
||
19 | 19 | */ |
20 | 20 | public function json($response, $statusCode = 200) |
21 | 21 | { |
22 | - if(Config::getParam('json.encodeUTF8', false)) { |
|
22 | + if (Config::getParam('json.encodeUTF8', false)) { |
|
23 | 23 | $response = I18nHelper::utf8Encode($response); |
24 | 24 | } |
25 | 25 | $data = json_encode($response, JSON_UNESCAPED_UNICODE | JSON_NUMERIC_CHECK); |
26 | - if(Config::getParam('angular.protection', false)) { |
|
27 | - $data = ")]}',\n" . $data; |
|
26 | + if (Config::getParam('angular.protection', false)) { |
|
27 | + $data = ")]}',\n".$data; |
|
28 | 28 | } |
29 | 29 | $this->setStatus($statusCode); |
30 | 30 | return $this->output($data, "application/json"); |