Total Complexity | 4 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class BaseJwt |
||
15 | { |
||
16 | /** |
||
17 | * Verifies jwt token on configured requests |
||
18 | * @example |
||
19 | * 'jwt'=> [ |
||
20 | * 'enabled' => true, |
||
21 | * 'table' => 'user', |
||
22 | * 'activate' => 30, |
||
23 | * 'expires' => 3600, |
||
24 | * ], |
||
25 | * |
||
26 | * @param $request |
||
27 | * @param Closure $next |
||
28 | * @return mixed |
||
29 | */ |
||
30 | public function handle($request, Closure $next) |
||
44 | } |
||
45 | } |
In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.