Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | private function dumpViewData($variable): string |
||
28 | { |
||
29 | $cloner = new VarCloner(); |
||
30 | |||
31 | $dumper = new HtmlDumper(); |
||
32 | $dumper->setDumpHeader(''); |
||
33 | |||
34 | $output = fopen('php://memory', 'r+b'); |
||
35 | |||
36 | $dumper->dump($cloner->cloneVar($variable)->withMaxDepth(1), $output, [ |
||
37 | 'maxDepth' => 1, |
||
38 | 'maxStringLength' => 160, |
||
39 | ]); |
||
40 | |||
41 | return stream_get_contents($output, -1, 0); |
||
42 | } |
||
43 | |||
52 |