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