Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 2.0625 |
Changes | 0 |
1 | <?php |
||
34 | 69 | public function ignoreJwt(Route $route) : bool |
|
35 | { |
||
36 | //did we find the router? |
||
37 | 69 | if (is_array(RouterCollection::getJwtIgnoreRoutes()[$route->getHttpMethods()])) { |
|
38 | return isset(RouterCollection::getJwtIgnoreRoutes()[$route->getHttpMethods()][md5($route->getPattern())]); |
||
39 | } |
||
40 | |||
41 | 69 | return false; |
|
42 | } |
||
44 |