Handler::report()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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