Handler::report()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php namespace App\Exceptions;
2
3
use Exception;
4
use Laravel\Lumen\Exceptions\Handler as ExceptionHandler;
5
6
class Handler extends ExceptionHandler {
7
8
    /**
9
     * A list of the exception types that should not be reported.
10
     *
11
     * @var array
12
     */
13
    protected $dontReport = [
14
        'Symfony\Component\HttpKernel\Exception\HttpException'
15
    ];
16
17
    /**
18
     * Report or log an exception.
19
     *
20
     * This is a great spot to send exceptions to Sentry, Bugsnag, etc.
21
     *
22
     * @param  \Exception  $e
23
     * @return void
24
     */
25
    public function report(Exception $e)
26
    {
27
        return parent::report($e);
28
    }
29
30
    /**
31
     * Render an exception into an HTTP response.
32
     *
33
     * @param  \Illuminate\Http\Request  $request
34
     * @param  \Exception  $e
35
     * @return \Illuminate\Http\Response
36
     */
37
    public function render($request, Exception $e)
38
    {
39
        return parent::render($request, $e);
40
    }
41
42
}
43