Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
45 | public function handle() |
||
46 | { |
||
47 | $response = Formatter::formatExceptionPlain( |
||
48 | $this->getInspector() |
||
49 | ); |
||
50 | |||
51 | $debug = $this->getDataTable(); |
||
52 | if (count($debug) > 0) { |
||
53 | $response .= "\n\n" . json_encode(["debug" => $debug]); |
||
54 | } |
||
55 | |||
56 | $this->setProperHeader($this->getException()); |
||
57 | echo $response; |
||
58 | return Handler::QUIT; |
||
59 | } |
||
61 |