mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-10 18:33:46 +02:00
Cleaned up some duplicate code
This commit is contained in:
@@ -38,8 +38,6 @@ class StatisticsController extends Controller
|
||||
$totalServerDisk = DB::table('servers')->sum('disk');
|
||||
$totalNodeDisk = DB::table('nodes')->sum('disk');
|
||||
$totalAllocations = Allocation::count();
|
||||
$totalUsersCount = User::count();
|
||||
$totalDBCount = Database::count();
|
||||
|
||||
$suspendedServersCount = Server::where('suspended', true)->count();
|
||||
|
||||
@@ -71,8 +69,6 @@ class StatisticsController extends Controller
|
||||
'totalNodeDisk' => $totalNodeDisk,
|
||||
'totalServerDisk' => $totalServerDisk,
|
||||
'totalAllocations' => $totalAllocations,
|
||||
'totalUsersCount' => $totalUsersCount,
|
||||
'totalDBCount' => $totalDBCount,
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user