mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 14:53:45 +02:00
Use more standardized phpcs
This commit is contained in:
@@ -29,7 +29,6 @@ class ScheduleTransformer extends BaseClientTransformer
|
||||
/**
|
||||
* Returns a transformed schedule model such that a client can view the information.
|
||||
*
|
||||
* @param \Pterodactyl\Models\Schedule $model
|
||||
* @return array
|
||||
*/
|
||||
public function transform(Schedule $model)
|
||||
@@ -56,7 +55,6 @@ class ScheduleTransformer extends BaseClientTransformer
|
||||
/**
|
||||
* Allows attaching the tasks specific to the schedule in the response.
|
||||
*
|
||||
* @param \Pterodactyl\Models\Schedule $model
|
||||
* @return \League\Fractal\Resource\Collection
|
||||
*
|
||||
* @throws \Pterodactyl\Exceptions\Transformer\InvalidTransformerLevelException
|
||||
@@ -64,7 +62,9 @@ class ScheduleTransformer extends BaseClientTransformer
|
||||
public function includeTasks(Schedule $model)
|
||||
{
|
||||
return $this->collection(
|
||||
$model->tasks, $this->makeTransformer(TaskTransformer::class), Task::RESOURCE_NAME
|
||||
$model->tasks,
|
||||
$this->makeTransformer(TaskTransformer::class),
|
||||
Task::RESOURCE_NAME
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user