*/ function collect_sso_providers(): array { if (License::isCommunity()) { return []; } $providers = []; if ( config('services.google.client_id') && config('services.google.client_secret') && config('services.google.hd') ) { $providers[] = 'Google'; } return $providers; } function get_mtime(string|SplFileInfo $file): int { $file = is_string($file) ? new SplFileInfo($file) : $file; // Workaround for #344, where getMTime() fails for certain files with Unicode names on Windows. return rescue(static fn () => $file->getMTime()) ?? time(); }