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