ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
HtmlDumperOutput.php
Go to the documentation of this file.
1 <?php
7 namespace Whoops\Util;
8 
15 {
16  private $output;
17 
18  public function __invoke($line, $depth)
19  {
20  // A negative depth means "end of dump"
21  if ($depth >= 0) {
22  // Adds a two spaces indentation to the line
23  $this->output .= str_repeat(' ', $depth) . $line . "\n";
24  }
25  }
26 
27  public function getOutput()
28  {
29  return $this->output;
30  }
31 
32  public function clear()
33  {
34  $this->output = null;
35  }
36 }
Used as output callable for Symfony::dump()
Whoops - php errors for cool kids.