mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 14:53:45 +02:00
Apply php-cs-fixer changes
This commit is contained in:
@@ -35,8 +35,6 @@ class AllocationTransformer extends Transformer
|
||||
/**
|
||||
* Load the node relationship onto a given transformation.
|
||||
*
|
||||
* @param \Pterodactyl\Models\Allocation $allocation
|
||||
*
|
||||
* @return \League\Fractal\Resource\Item|\League\Fractal\Resource\NullResource
|
||||
*/
|
||||
public function includeNode(Allocation $allocation)
|
||||
@@ -51,8 +49,6 @@ class AllocationTransformer extends Transformer
|
||||
/**
|
||||
* Load the server relationship onto a given transformation.
|
||||
*
|
||||
* @param \Pterodactyl\Models\Allocation $allocation
|
||||
*
|
||||
* @return \League\Fractal\Resource\Item|\League\Fractal\Resource\NullResource
|
||||
*/
|
||||
public function includeServer(Allocation $allocation)
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
namespace Pterodactyl\Transformers\Api\Application;
|
||||
|
||||
use Pterodactyl\Models\Database;
|
||||
use Pterodactyl\Models\DatabaseHost;
|
||||
use Pterodactyl\Services\Acl\Api\AdminAcl;
|
||||
use Pterodactyl\Transformers\Api\Transformer;
|
||||
use Illuminate\Contracts\Encryption\Encrypter;
|
||||
|
||||
@@ -41,8 +41,6 @@ abstract class Transformer extends TransformerAbstract
|
||||
|
||||
/**
|
||||
* Returns the authorized user for the request.
|
||||
*
|
||||
* @return \Pterodactyl\Models\User
|
||||
*/
|
||||
protected function user(): User
|
||||
{
|
||||
@@ -62,10 +60,12 @@ abstract class Transformer extends TransformerAbstract
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @param mixed $data
|
||||
* @param callable|\League\Fractal\TransformerAbstract $transformer
|
||||
* @param null $resourceKey
|
||||
*
|
||||
* @return \League\Fractal\Resource\Item
|
||||
*/
|
||||
protected function item($data, $transformer, $resourceKey = null)
|
||||
@@ -84,10 +84,12 @@ abstract class Transformer extends TransformerAbstract
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @param mixed $data
|
||||
* @param callable|\League\Fractal\TransformerAbstract $transformer
|
||||
* @param null $resourceKey
|
||||
*
|
||||
* @return \League\Fractal\Resource\Collection
|
||||
*/
|
||||
protected function collection($data, $transformer, $resourceKey = null)
|
||||
@@ -138,7 +140,7 @@ abstract class Transformer extends TransformerAbstract
|
||||
*
|
||||
* If no time is provided a null value is returned.
|
||||
*
|
||||
* @param null|string|\DateTimeInterface $timestamp
|
||||
* @param string|\DateTimeInterface|null $timestamp
|
||||
*/
|
||||
protected static function formatTimestamp($timestamp, string $tz = null): ?string
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user