77
88class ServerConfigurationStructureService
99{
10- /**
11- * @var \Pterodactyl\Services\Servers\EnvironmentService
12- */
13- private $ environment ;
10+ private EnvironmentService $ environment ;
1411
1512 /**
1613 * ServerConfigurationStructureService constructor.
17- *
18- * @param \Pterodactyl\Services\Servers\EnvironmentService $environment
1914 */
2015 public function __construct (EnvironmentService $ environment )
2116 {
@@ -27,8 +22,6 @@ public function __construct(EnvironmentService $environment)
2722 *
2823 * DO NOT MODIFY THIS FUNCTION. This powers legacy code handling for the new Wings
2924 * daemon, if you modify the structure eggs will break unexpectedly.
30- *
31- * @param bool $legacy deprecated
3225 */
3326 public function handle (Server $ server , array $ override = [], bool $ legacy = false ): array
3427 {
@@ -49,10 +42,8 @@ public function handle(Server $server, array $override = [], bool $legacy = fals
4942
5043 /**
5144 * Returns the new data format used for the Wings daemon.
52- *
53- * @return array
5445 */
55- protected function returnCurrentFormat (Server $ server )
46+ protected function returnCurrentFormat (Server $ server ): array
5647 {
5748 return [
5849 'uuid ' => $ server ->uuid ,
@@ -89,11 +80,7 @@ protected function returnCurrentFormat(Server $server)
8980 }),
9081 'egg ' => [
9182 'id ' => $ server ->egg ->uuid ,
92- 'file_denylist ' => [
93- 'config.yml ' ,
94- '**/*.json ' ,
95- ],
96- // 'file_denylist' => explode(PHP_EOL, $server->egg->inherit_file_denylist),
83+ 'file_denylist ' => explode (PHP_EOL , $ server ->egg ->inherit_file_denylist ),
9784 ],
9885 ];
9986 }
@@ -102,11 +89,9 @@ protected function returnCurrentFormat(Server $server)
10289 * Returns the legacy server data format to continue support for old egg configurations
10390 * that have not yet been updated.
10491 *
105- * @return array
106- *
10792 * @deprecated
10893 */
109- protected function returnLegacyFormat (Server $ server )
94+ protected function returnLegacyFormat (Server $ server ): array
11095 {
11196 return [
11297 'uuid ' => $ server ->uuid ,
0 commit comments