| Conditions | 3 |
| Paths | 3 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | public function __construct(string $message, string $homePath, ?array $trace = null) |
||
| 11 | { |
||
| 12 | parent::__construct($message); |
||
| 13 | foreach ($trace ?? $this->getTrace() as $item) { |
||
| 14 | if (realpath($homePath . DIRECTORY_SEPARATOR . "migrations") === dirname($item['file'] ?? '')) { |
||
| 15 | $this->message = "On line {$item['line']} of {$item['file']}: {$this->message}"; |
||
| 16 | break; |
||
| 17 | } |
||
| 21 |