Handler   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A render() 0 4 1
A report() 0 4 1
1
<?php
2
3
namespace App\Exceptions;
4
5
use Exception;
6
use Symfony\Component\HttpKernel\Exception\HttpException;
7
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
8
9
/**
10
 * Class Handler
11
 * @package App\Exceptions
12
 */
13
class Handler extends ExceptionHandler
14
{
15
    /**
16
     * A list of the exception types that should not be reported.
17
     *
18
     * @var array
19
     */
20
    protected $dontReport = [
21
        HttpException::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
     * @param Exception $exception
29
     * @internal param Exception $e
30
     */
31
    public function report(Exception $exception)
32
    {
33
        return parent::report($exception);
34
    }
35
36
    /**
37
     * Render an exception into an HTTP response.
38
     *
39
     * @param  \Illuminate\Http\Request $request
40
     * @param Exception $exception
41
     * @return \Illuminate\Http\Response
42
     * @internal param Exception $e
43
     */
44
    public function render($request, Exception $exception)
45
    {
46
        return parent::render($request, $exception);
47
    }
48
}
49