File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 44
55use Cake \Chronos \Chronos ;
66use Pterodactyl \Models \Database ;
7- use League \Fractal \Resource \Item ;
87use Pterodactyl \Models \DatabaseHost ;
98use Pterodactyl \Services \Acl \Api \AdminAcl ;
109use Illuminate \Contracts \Encryption \Encrypter ;
@@ -72,7 +71,7 @@ public function transform(Database $model): array
7271 * @param \Pterodactyl\Models\Database $model
7372 * @return \League\Fractal\Resource\Item
7473 */
75- public function includePassword (Database $ model ): Item
74+ public function includePassword (Database $ model )
7675 {
7776 return $ this ->item ($ model , function (Database $ model ) {
7877 return [
Original file line number Diff line number Diff line change 33namespace Pterodactyl \Transformers \Api \Client ;
44
55use Pterodactyl \Models \Database ;
6- use League \Fractal \Resource \Item ;
76use Pterodactyl \Models \Permission ;
87use Illuminate \Contracts \Encryption \Encrypter ;
98use Pterodactyl \Contracts \Extensions \HashidsInterface ;
@@ -69,9 +68,9 @@ public function transform(Database $model): array
6968 * @param \Pterodactyl\Models\Database $database
7069 * @return \League\Fractal\Resource\Item|\League\Fractal\Resource\NullResource
7170 */
72- public function includePassword (Database $ database ): Item
71+ public function includePassword (Database $ database )
7372 {
74- if (!$ this ->getUser ()->can (Permission::ACTION_DATABASE_VIEW_PASSWORD , $ database ->server )) {
73+ if (! $ this ->getUser ()->can (Permission::ACTION_DATABASE_VIEW_PASSWORD , $ database ->server )) {
7574 return $ this ->null ();
7675 }
7776
You can’t perform that action at this time.
0 commit comments