Completed
Push — master ( b5ed13...427cbb )
by Rafael
05:10
created

debug.php ➔ kill()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
function kill() {
4
  return call_user_func_array("\\PHP\\Utils::kill", func_get_args());
5
}
6
7
function dump_sql($sSql) {
8
  return \PHP\Utils::dump_sql($sSql);
9
}
10
11
function kill_sql($sSql) {
12
13
  \PHP\Utils::dump_sql($sSql);
14
  die("FIM SQL");
1 ignored issue
show
Coding Style Compatibility introduced by
The function kill_sql() contains an exit expression.

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.

Loading history...
15
}
16
17
function debug_array(&$array) {
18
  return new \PHP\ArrayDebugger($array);
19
}
20