GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Handler   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
c 2
b 0
f 0
lcom 0
cbo 1
dl 0
loc 41
rs 10
ccs 5
cts 5
cp 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A report() 0 4 1
A render() 0 4 1
1
<?php
2
3
namespace App\Exceptions;
4
5
use Exception;
6
use Illuminate\Auth\Access\AuthorizationException;
7
use Illuminate\Database\Eloquent\ModelNotFoundException;
8
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
9
use Illuminate\Validation\ValidationException;
10
use Symfony\Component\HttpKernel\Exception\HttpException;
11
12
class Handler extends ExceptionHandler
13
{
14
    /**
15
     * A list of the exception types that should not be reported.
16
     *
17
     * @var array
18
     */
19
    protected $dontReport = [
20
        AuthorizationException::class,
21
        HttpException::class,
22
        ModelNotFoundException::class,
23
        ValidationException::class,
24
    ];
25
26
    /**
27
     * Report or log an exception.
28
     *
29
     * This is a great spot to send exceptions to Sentry, Bugsnag, etc.
30
     *
31
     * @param  \Exception $e
32
     *
33
     * @return void
34
     */
35 21
    public function report(Exception $e)
36
    {
37 21
        parent::report($e);
38 21
    }
39
40
    /**
41
     * Render an exception into an HTTP response.
42
     *
43
     * @param  \Illuminate\Http\Request $request
44
     * @param  \Exception $e
45
     *
46
     * @return \Illuminate\Http\Response
47
     */
48 21
    public function render($request, Exception $e)
49
    {
50 21
        return parent::render($request, $e);
51
    }
52
}
53