| Total Complexity | 1 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class SetUserTimezone |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Handle an incoming request. |
||
| 13 | * |
||
| 14 | * Note: We do NOT set the global timezone here because it would interfere |
||
| 15 | * with database operations and helper functions. Instead, the timezone |
||
| 16 | * conversion happens in the userDate() and userDateDiffForHumans() helpers. |
||
| 17 | * |
||
| 18 | * @param \Closure(\Illuminate\Http\Request): (\Symfony\Component\HttpFoundation\Response) $next |
||
| 19 | */ |
||
| 20 | public function handle(Request $request, Closure $next): Response |
||
| 27 |