| Conditions | 6 |
| Paths | 5 |
| Total Lines | 24 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function handle(mixed $variable, int $depth, bool $highlight = false): void |
||
| 18 | { |
||
| 19 | $stack = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); |
||
| 20 | |||
| 21 | $callStack = null; |
||
| 22 | foreach ($stack as $value) { |
||
| 23 | if (!isset($value['file'])) { |
||
| 24 | continue; |
||
| 25 | } |
||
| 26 | if (str_ends_with($value['file'], '/var-dumper/src/functions.php')) { |
||
| 27 | continue; |
||
| 28 | } |
||
| 29 | if (str_ends_with($value['file'], '/var-dumper/src/VarDumper.php')) { |
||
| 30 | continue; |
||
| 31 | } |
||
| 32 | $callStack = $value; |
||
| 33 | break; |
||
| 34 | } |
||
| 35 | |||
| 36 | $this->collector->collect( |
||
| 37 | $variable, |
||
| 38 | $callStack === null ? '' : $callStack['file'] . ':' . $callStack['line'] |
||
| 39 | ); |
||
| 40 | $this->decorated->handle($variable, $depth, $highlight); |
||
| 41 | } |
||
| 43 |