Passed
Push — master ( 10dc5f...7c53b3 )
by Laurent
01:24
created
programs/functions.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -233,9 +233,15 @@
 block discarded – undo
233 233
  */
234 234
 function app_json_encode($a)
235 235
 {
236
-    if (is_null($a)) return 'null';
237
-    if ($a === false) return 'false';
238
-    if ($a === true) return 'true';
236
+    if (is_null($a)) {
237
+        return 'null';
238
+    }
239
+    if ($a === false) {
240
+        return 'false';
241
+    }
242
+    if ($a === true) {
243
+        return 'true';
244
+    }
239 245
     if (is_scalar($a)) {
240 246
         if (is_float($a)) {
241 247
             // Always use "." for floats.
Please login to merge, or discard this patch.