Total Complexity | 4 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 87.5% |
Changes | 0 |
1 | <?php |
||
11 | class Request extends PhRequest |
||
12 | { |
||
13 | /** |
||
14 | * @return string |
||
15 | */ |
||
16 | 69 | public function getBearerTokenFromHeader(): string |
|
19 | } |
||
20 | |||
21 | /** |
||
22 | * @return bool |
||
23 | */ |
||
24 | 69 | public function isEmptyBearerToken(): bool |
|
25 | { |
||
26 | 69 | return true === empty($this->getBearerTokenFromHeader()); |
|
27 | } |
||
28 | |||
29 | /** |
||
30 | * Did we specify we dont need to validate JWT Token on this section? |
||
31 | * |
||
32 | * @return bool |
||
33 | */ |
||
34 | 69 | public function ignoreJwt(Route $route) : bool |
|
42 | } |
||
43 | } |
||
44 |