Passed
Pull Request — develop (#51)
by
unknown
09:17
created

Handler::unauthenticated()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 2
1
<?php
2
3
namespace App\Exceptions;
4
5
use Throwable;
6
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
7
8
class Handler extends ExceptionHandler
9
{
10
    // use Throwable - you should NOT import Throwable class as a trait here. You need to just import it above the class
11
    public function report(Throwable $exception)
12
    {
13
        parent::report($exception);
14
    }
15
    public function render($request, Throwable $exception)
16
    {
17
        return parent::render($request, $exception);
18
    }
19
}
20