Passed
Push — master ( 3bcaa3...b37f55 )
by Fran
07:10 queued 03:03
created
src/base/types/traits/JsonTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,12 +19,12 @@
 block discarded – undo
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");
Please login to merge, or discard this patch.