minor fixes

This commit is contained in:
2026-04-09 08:50:36 +02:00
parent 23d363a50c
commit a2457f4e49
75 changed files with 3848 additions and 387 deletions

View File

@@ -63,7 +63,7 @@ final class AdaptiveTimeWindow
{
$ttl = (int) config('early_growth.cache_ttl.time_window', 600);
return Cache::remember('egs.uploads_per_day', $ttl, function (): float {
return (float) Cache::remember('egs.uploads_per_day', $ttl, function (): float {
$count = Artwork::query()
->where('is_public', true)
->where('is_approved', true)
@@ -72,7 +72,7 @@ final class AdaptiveTimeWindow
->where('published_at', '>=', now()->subDays(7))
->count();
return round($count / 7, 2);
return (float) round($count / 7, 2);
});
}
}