Cleanup code, add basic functionality for Nests

This commit is contained in:
Matthew Penner 2021-01-01 15:55:30 -07:00
parent 6c85be72fa
commit 88ac1ce1fd
37 changed files with 331 additions and 159 deletions

View file

@ -19,15 +19,15 @@ class AdminRoleTransformer extends BaseTransformer
/**
* Return a transformed User model that can be consumed by external services.
*
* @param \Pterodactyl\Models\AdminRole $role
* @param \Pterodactyl\Models\AdminRole $model
* @return array
*/
public function transform(AdminRole $role): array
public function transform(AdminRole $model): array
{
return [
'id' => $role->id,
'name' => $role->name,
'description' => $role->description,
'id' => $model->id,
'name' => $model->name,
'description' => $model->description,
];
}
}