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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user