Conditions | 2 |
Paths | 2 |
Total Lines | 5 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | function jpre($var, $die = false) |
||
24 | { |
||
25 | echo json_encode($var, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); |
||
26 | if ($die) { |
||
27 | die; |
||
1 ignored issue
–
show
|
|||
28 | } |
||
62 | } |
In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.