Completed
Pull Request — master (#19)
by Manuel
08:30
created

Handler   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 36
ccs 4
cts 4
cp 1
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 PiFinder\Exceptions;
4
5
use Bugsnag\BugsnagLaravel\BugsnagExceptionHandler as ExceptionHandler;
6
use Exception;
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
        'Symfony\Component\HttpKernel\Exception\HttpException',
17
    ];
18
19
    /**
20
     * Report or log an exception.
21
     *
22
     * This is a great spot to send exceptions to Sentry, Bugsnag, etc.
23
     *
24
     * @param \Exception $e
25
     */
26 1
    public function report(Exception $e)
27
    {
28 1
        return parent::report($e);
29
    }
30
31
    /**
32
     * Render an exception into an HTTP response.
33
     *
34
     * @param \Illuminate\Http\Request $request
35
     * @param \Exception               $e
36
     *
37
     * @return \Illuminate\Http\Response
38
     */
39 1
    public function render($request, Exception $e)
40
    {
41 1
        return parent::render($request, $e);
42
    }
43
}
44