Conditions | 3 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 3.072 |
Changes | 0 |
1 | <?php |
||
27 | 69 | protected function isValidCheck(Request $request, Micro $app): bool |
|
28 | { |
||
29 | 69 | $ignoreJwt = $request->ignoreJwt($app['router']->getMatchedRoute()); |
|
30 | 69 | if (!$ignoreJwt && $request->isEmptyBearerToken()) { |
|
31 | throw new UnauthorizedHttpException('Missing Token'); |
||
32 | } |
||
33 | |||
34 | 69 | return !$ignoreJwt; |
|
35 | } |
||
37 |