Conditions | 1 |
Paths | 1 |
Total Lines | 5 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | function kill_sql($sSql) { |
||
12 | |||
13 | \PHP\Utils::dump_sql($sSql); |
||
14 | die("FIM SQL"); |
||
1 ignored issue
–
show
|
|||
15 | } |
||
16 | |||
20 |
An exit expression should only be used in rare cases. For example, if you write a short command line script.
In most cases however, using an
exit
expression makes the code untestable and often causes incompatibilities with other libraries. Thus, unless you are absolutely sure it is required here, we recommend to refactor your code to avoid its usage.