Total Complexity | 12 |
Total Lines | 159 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 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) |
||
27 | } |
||
28 | } |
||
29 |