Total Complexity | 2 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
29 | class Handler extends ExceptionHandler |
||
30 | { |
||
31 | /** |
||
32 | * A list of the inputs that are never flashed for validation exceptions. |
||
33 | * |
||
34 | * @var array |
||
35 | */ |
||
36 | protected $dontFlash = [ |
||
37 | 'password', |
||
38 | 'password_confirmation', |
||
39 | ]; |
||
40 | |||
41 | /** |
||
42 | * A list of the exception types that are not reported. |
||
43 | * |
||
44 | * @var array |
||
45 | */ |
||
46 | protected $dontReport = []; |
||
47 | |||
48 | /** |
||
49 | * Render an exception into an HTTP response. |
||
50 | * |
||
51 | * @param Request $request |
||
52 | * @param Throwable $exception |
||
53 | * |
||
54 | * @throws Throwable |
||
55 | * |
||
56 | * @return Response |
||
57 | */ |
||
58 | 8 | public function render($request, Throwable $exception) |
|
61 | } |
||
62 | |||
63 | /** |
||
64 | * Report or log an exception. |
||
65 | * |
||
66 | * @param Throwable $exception |
||
67 | * |
||
68 | * @throws Throwable |
||
69 | * |
||
70 | * @return void |
||
71 | */ |
||
72 | 8 | public function report(Throwable $exception): void |
|
77 |