Refactor stats variable names for clarity

Renamed generic 'stats' variables to more specific names such as 'domainStats', 'errorStats', 'tldStats', and 'importStats' across controllers and views. This improves code readability and reduces ambiguity when handling different types of statistics in the application.
This commit is contained in:
Hosteroid
2025-10-20 19:53:28 +03:00
parent 1b84f06c86
commit c4e4196e02
8 changed files with 35 additions and 35 deletions

View File

@@ -17,9 +17,9 @@ if ($userId) {
$unreadNotifications = 0;
}
// Get stats for sidebar (available on all pages)
if (!isset($stats)) {
$stats = \App\Helpers\LayoutHelper::getDomainStats();
// Get domain stats for sidebar (available on all pages)
if (!isset($domainStats)) {
$domainStats = \App\Helpers\LayoutHelper::getDomainStats();
}
// Get application settings from database