| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | trait JsonHandler |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Handle the json response. Check if exception is treated. If true call |
||
| 12 | * the specific handler. If false set the default response to be returned. |
||
| 13 | * |
||
| 14 | * @param \Exception $exception |
||
| 15 | * |
||
| 16 | * @return \Illuminate\Http\JsonResponse |
||
| 17 | */ |
||
| 18 | public function jsonResponse(Exception $exception) |
||
| 29 |