Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | public static function error_handler_callback($code, $string, $file, $line) |
||
29 | { |
||
30 | // Not telling? |
||
31 | if (error_reporting() === 0) |
||
32 | { |
||
33 | return; |
||
34 | } |
||
35 | |||
36 | // Telling, just convert the error over to an exception |
||
37 | $exception = new self($string, $code); |
||
38 | $exception->line = $line; |
||
39 | $exception->file = $file; |
||
40 | |||
41 | self::exception_handler($exception); |
||
42 | } |
||
74 |