Conditions | 5 |
Paths | 4 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 30 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
18 | public function __construct($message = "", $code = 0, Throwable $previous = null) |
||
19 | { |
||
20 | if (function_exists('debug_backtrace')) { |
||
21 | $trace = debug_backtrace(); |
||
22 | foreach ($trace as $t) { |
||
23 | if (!empty($t['file']) && $t['file'] === self::$recipeFile) { |
||
24 | $this->filename = basename($t['file']); |
||
25 | $this->lineNumber = $t['line']; |
||
26 | break; |
||
27 | } |
||
28 | } |
||
29 | } |
||
30 | parent::__construct($message, $code, $previous); |
||
31 | } |
||
32 | |||
52 |