Cleaned up some duplicate code
This commit is contained in:
parent
ee50da0a7c
commit
06a67bb4bb
2 changed files with 2 additions and 6 deletions
|
@ -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,
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue