JWTAuth::parseToken()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 3
crap 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