22
33namespace Pterodactyl \Http \Controllers \Admin ;
44
5- use Illuminate \Http \Request ;
6- use Illuminate \Support \Facades \DB ;
7- use Pterodactyl \Contracts \Repository \AllocationRepositoryInterface ;
8- use Pterodactyl \Contracts \Repository \DatabaseRepositoryInterface ;
5+ use Pterodactyl \Http \Controllers \Controller ;
96use Pterodactyl \Contracts \Repository \EggRepositoryInterface ;
7+ use Pterodactyl \Traits \Controllers \PlainJavascriptInjection ;
108use Pterodactyl \Contracts \Repository \NodeRepositoryInterface ;
11- use Pterodactyl \Contracts \Repository \ServerRepositoryInterface ;
129use Pterodactyl \Contracts \Repository \UserRepositoryInterface ;
13- use Pterodactyl \Http \Controllers \Controller ;
14- use Pterodactyl \Traits \Controllers \PlainJavascriptInjection ;
10+ use Pterodactyl \Contracts \Repository \ServerRepositoryInterface ;
11+ use Pterodactyl \Contracts \Repository \DatabaseRepositoryInterface ;
12+ use Pterodactyl \Contracts \Repository \AllocationRepositoryInterface ;
1513
1614class StatisticsController extends Controller
1715{
@@ -29,15 +27,14 @@ class StatisticsController extends Controller
2927
3028 private $ userRepository ;
3129
32- function __construct (
30+ public function __construct (
3331 AllocationRepositoryInterface $ allocationRepository ,
3432 DatabaseRepositoryInterface $ databaseRepository ,
3533 EggRepositoryInterface $ eggRepository ,
3634 NodeRepositoryInterface $ nodeRepository ,
3735 ServerRepositoryInterface $ serverRepository ,
3836 UserRepositoryInterface $ userRepository
39- )
40- {
37+ ) {
4138 $ this ->allocationRepository = $ allocationRepository ;
4239 $ this ->databaseRepository = $ databaseRepository ;
4340 $ this ->eggRepository = $ eggRepository ;
@@ -83,7 +80,7 @@ public function index()
8380 'nodes ' => $ nodes ,
8481 'tokens ' => $ tokens ,
8582 ]);
86-
83+
8784 return view ('admin.statistics ' , [
8885 'servers ' => $ servers ,
8986 'nodes ' => $ nodes ,
@@ -97,5 +94,4 @@ public function index()
9794 'totalAllocations ' => $ totalAllocations ,
9895 ]);
9996 }
100-
10197}
0 commit comments