Handler   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 43
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A report() 0 4 1
A render() 0 4 1
1
<?php
2
3
namespace App\Exceptions;
4
5
use Exception;
6
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
7
8
class Handler extends ExceptionHandler
9
{
10
    /**
11
     * A list of the exception types that should not be reported.
12
     *
13
     * @var array
14
     */
15
    protected $dontReport = [
16
        \Illuminate\Auth\AuthenticationException::class,
17
        \Illuminate\Auth\Access\AuthorizationException::class,
18
        \Symfony\Component\HttpKernel\Exception\HttpException::class,
19
        \Illuminate\Database\Eloquent\ModelNotFoundException::class,
20
        \Illuminate\Session\TokenMismatchException::class,
21
        \Illuminate\Validation\ValidationException::class,
22
    ];
23
24
    /**
25
     * Report or log an exception.
26
     *
27
     * This is a great spot to send exceptions to Sentry, Bugsnag, etc.
28
     *
29
     * @param \Exception $exception
30
     *
31
     * @return void
32
     */
33
    public function report(Exception $exception)
34
    {
35
        parent::report($exception);
36
    }
37
38
    /**
39
     * Render an exception into an HTTP response.
40
     *
41
     * @param \Illuminate\Http\Request $request
42
     * @param \Exception               $exception
43
     *
44
     * @return \Illuminate\Http\Response
45
     */
46
    public function render($request, Exception $exception)
47
    {
48
        return parent::render($request, $exception);
49
    }
50
}
51