Handler   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 37
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 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