File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
app/Transformers/Api/Application Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 22
33namespace Pterodactyl \Transformers \Api \Application ;
44
5- use Pterodactyl \Models \ServerVariable ;
5+ use Pterodactyl \Models \EggVariable ;
66use Pterodactyl \Services \Acl \Api \AdminAcl ;
77
88class ServerVariableTransformer extends BaseTransformer
@@ -27,22 +27,22 @@ public function getResourceName(): string
2727 /**
2828 * Return a generic transformed server variable array.
2929 *
30- * @param \Pterodactyl\Models\ServerVariable $variable
30+ * @param \Pterodactyl\Models\EggVariable $variable
3131 * @return array
3232 */
33- public function transform (ServerVariable $ variable )
33+ public function transform (EggVariable $ variable )
3434 {
3535 return $ variable ->toArray ();
3636 }
3737
3838 /**
3939 * Return the parent service variable data.
4040 *
41- * @param \Pterodactyl\Models\ServerVariable $variable
41+ * @param \Pterodactyl\Models\EggVariable $variable
4242 * @return \League\Fractal\Resource\Item|\League\Fractal\Resource\NullResource
4343 * @throws \Pterodactyl\Exceptions\Transformer\InvalidTransformerLevelException
4444 */
45- public function includeParent (ServerVariable $ variable )
45+ public function includeParent (EggVariable $ variable )
4646 {
4747 if (! $ this ->authorize (AdminAcl::RESOURCE_EGGS )) {
4848 return $ this ->null ();
You can’t perform that action at this time.
0 commit comments