Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
16 | 1 | public function errorAction() |
|
17 | { |
||
18 | /** @var Exception $e */ |
||
19 | 1 | $e = $this->getParam('error'); |
|
20 | $responseArray = [ |
||
21 | 1 | 'code' => $e->getCode(), |
|
22 | 1 | 'message' => $e->getMessage(), |
|
23 | 1 | 'trace' => $e->getTrace(), |
|
24 | ]; |
||
25 | 1 | $this->sendJsonResponse($responseArray, $e->getCode()); |
|
26 | 1 | } |
|
34 | } |