Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | public function handle(mixed $variable, int $depth, bool $highlight = false): void |
||
13 | { |
||
14 | $varDumper = VarDumper::create($variable); |
||
15 | $output = $varDumper->asString($depth); |
||
16 | |||
17 | if ($highlight) { |
||
18 | $result = highlight_string("<?php\n" . $output, true); |
||
19 | $output = preg_replace('/<\\?php<br \\/>/', '', $result, 1); |
||
20 | } |
||
21 | |||
22 | echo $output; |
||
23 | } |
||
25 |