chore: code styling via pint

This commit is contained in:
idevakk
2025-11-14 01:51:35 -08:00
parent 3892c48ef2
commit 90ab79b3a2
121 changed files with 1003 additions and 892 deletions

View File

@@ -79,6 +79,7 @@ class StatsOverview extends BaseWidget
if ($today == $yesterday) {
return null;
}
return $today > $yesterday ? 'heroicon-o-arrow-up' : 'heroicon-o-arrow-down';
}
@@ -87,6 +88,7 @@ class StatsOverview extends BaseWidget
if ($today == $yesterday) {
return 'gray';
}
return $today > $yesterday ? 'success' : 'danger';
}
@@ -95,6 +97,7 @@ class StatsOverview extends BaseWidget
if ($period === 'yesterday') {
return User::where('created_at', '<', Carbon::today('UTC')->startOfDay())->count();
}
return User::count();
}
@@ -111,6 +114,7 @@ class StatsOverview extends BaseWidget
if ($period === 'yesterday') {
return Log::where('created_at', '<', Carbon::today('UTC')->startOfDay())->count();
}
return Log::count();
}
@@ -131,6 +135,7 @@ class StatsOverview extends BaseWidget
->where('created_at', '<', Carbon::today('UTC')->startOfDay())
->count();
}
return User::whereNotNull('stripe_id')->count();
}
@@ -139,6 +144,7 @@ class StatsOverview extends BaseWidget
if ($period === 'yesterday') {
return PremiumEmail::where('created_at', '<', Carbon::today('UTC')->startOfDay())->count();
}
return PremiumEmail::count();
}