Conditions | 9 |
Paths | 16 |
Total Lines | 11 |
Lines | 8 |
Ratio | 72.73 % |
Changes | 0 |
1 | <?php |
||
4 | public function __construct($_message, $_level = 2, $_code = 0, Exception $_previous = null) { |
||
5 | parent::__construct($_message, $_code, $_previous); |
||
6 | View Code Duplication | if(isset(debug_backtrace()[$_level]) && isset(debug_backtrace()[$_level]["file"])) |
|
7 | $this->file = debug_backtrace()[$_level]["file"]; |
||
8 | View Code Duplication | if(isset(debug_backtrace()[$_level]) && isset(debug_backtrace()[$_level]["line"])) |
|
9 | $this->line = debug_backtrace()[$_level]["line"]; |
||
10 | View Code Duplication | if(isset(debug_backtrace()[$_level]) && isset(debug_backtrace()[$_level]["function"])) |
|
11 | $this->function = debug_backtrace()[$_level]["function"]; |
||
12 | View Code Duplication | if(isset(debug_backtrace()[$_level]) && isset(debug_backtrace()[$_level]["class"])) |
|
13 | $this->class = debug_backtrace()[$_level]["class"]; |
||
14 | } |
||
15 | public function __toString() { |
||
32 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.