Conditions | 3 |
Paths | 2 |
Total Lines | 19 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
27 | public function handle() |
||
28 | { |
||
29 | $response = array( |
||
30 | 'error' => Formatter::formatExceptionAsDataArray( |
||
31 | $this->getInspector(), |
||
32 | $this->addTraceToOutput() |
||
33 | ), |
||
34 | ); |
||
35 | |||
36 | $debug = $this->getDataTable(); |
||
37 | if (count($debug) > 0) { |
||
38 | $response["debug"] = $debug; |
||
39 | } |
||
40 | |||
41 | $this->setProperHeader($this->getException()); |
||
42 | |||
43 | echo json_encode($response, defined('JSON_PARTIAL_OUTPUT_ON_ERROR') ? JSON_PARTIAL_OUTPUT_ON_ERROR : 0); |
||
44 | |||
45 | return Handler::QUIT; |
||
46 | } |
||
48 |