Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 2 |
CRAP Score | 5.667 |
Changes | 6 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | 5 | public function render($request, Exception $exception) |
|
28 | { |
||
29 | 5 | if ($request->wantsJson()) { |
|
30 | $this->convertDefaultException($exception); |
||
31 | |||
32 | if ($exception instanceof HttpException) { |
||
33 | return $this->renderResponse($exception); |
||
34 | } |
||
35 | } |
||
36 | |||
37 | return parent::render($request, $exception); |
||
38 | } |
||
39 | } |