Completed
Push — master ( 28db96...783a35 )
by
unknown
04:04
created

Authenticate::authenticate()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
c 0
b 0
f 0
rs 9.6666
cc 2
eloc 5
nc 2
nop 1
1
<?php
2
3
namespace App\Ship\Middlewares\Http;
4
5
use App\Containers\Authentication\Exceptions\AuthenticationException;
6
use Exception;
7
use Illuminate\Auth\Middleware\Authenticate as LaravelAuthenticate;
8
9
/**
10
 * Class Authenticate
11
 *
12
 * @author  Mahmoud Zalt  <[email protected]>
13
 */
14
class Authenticate extends LaravelAuthenticate
15
{
16
17
    public function authenticate(array $guards)
0 ignored issues
show
Coding Style Best Practice introduced by Johannes Schobel
Please use __construct() instead of a PHP4-style constructor that is named after the class.
Loading history...
18
    {
19
        try {
20
            return parent::authenticate($guards);
21
        }
22
        catch (Exception $exception) {
23
            throw new AuthenticationException();
24
        }
25
    }
26
}
27