| Conditions | 2 |
| Paths | 2 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 39 | public function __construct($message) |
||
| 40 | { |
||
| 41 | if (self::$debug) { |
||
| 42 | throw new Exception($message, 1); |
||
| 43 | } else { |
||
| 44 | die('<h2>Opps! An error occurred.</h2> ' . $message); |
||
|
1 ignored issue
–
show
|
|||
| 45 | } |
||
| 48 |
In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.