JWTAuth   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 3
c 0
b 0
f 0
dl 0
loc 16
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A parseToken() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
namespace App;
4
5
use Illuminate\Http\Request;
6
use Tymon\JWTAuth\JWTAuth as BaseJWTAuth;
7
use Tymon\JWTAuth\JWTManager;
8
use Tymon\JWTAuth\Providers\Auth\AuthInterface;
9
use Tymon\JWTAuth\Providers\User\UserInterface;
10
11
class JWTAuth extends BaseJWTAuth
12
{
13
    /**
14
     * {@inheritdoc}
15
     */
16 33
    public function __construct(JWTManager $manager, UserInterface $user, AuthInterface $auth, Request $request)
17
    {
18 33
        parent::__construct($manager, $user, $auth, $request);
19 33
    }
20
21
    /**
22
     * {@inheritdoc}
23
     */
24 33
    public function parseToken($method = 'bearer', $header = 'authorization', $query = 'jwt-token'): BaseJWTAuth
25
    {
26 33
        return parent::parseToken($method, $header, $query);
27
    }
28
}
29