mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 06:43:45 +02:00
Use more standardized phpcs
This commit is contained in:
@@ -18,7 +18,9 @@ use Pterodactyl\Repositories\Wings\DaemonCommandRepository;
|
||||
|
||||
class RunTaskJob extends Job implements ShouldQueue
|
||||
{
|
||||
use DispatchesJobs, InteractsWithQueue, SerializesModels;
|
||||
use DispatchesJobs;
|
||||
use InteractsWithQueue;
|
||||
use SerializesModels;
|
||||
|
||||
/**
|
||||
* @var \Pterodactyl\Models\Task
|
||||
@@ -27,8 +29,6 @@ class RunTaskJob extends Job implements ShouldQueue
|
||||
|
||||
/**
|
||||
* RunTaskJob constructor.
|
||||
*
|
||||
* @param \Pterodactyl\Models\Task $task
|
||||
*/
|
||||
public function __construct(Task $task)
|
||||
{
|
||||
@@ -39,10 +39,6 @@ class RunTaskJob extends Job implements ShouldQueue
|
||||
/**
|
||||
* Run the job and send actions to the daemon running the server.
|
||||
*
|
||||
* @param \Pterodactyl\Repositories\Wings\DaemonCommandRepository $commandRepository
|
||||
* @param \Pterodactyl\Services\Backups\InitiateBackupService $backupService
|
||||
* @param \Pterodactyl\Repositories\Wings\DaemonPowerRepository $powerRepository
|
||||
*
|
||||
* @throws \Throwable
|
||||
*/
|
||||
public function handle(
|
||||
@@ -51,7 +47,7 @@ class RunTaskJob extends Job implements ShouldQueue
|
||||
DaemonPowerRepository $powerRepository
|
||||
) {
|
||||
// Do not process a task that is not set to active.
|
||||
if (! $this->task->schedule->is_active) {
|
||||
if (!$this->task->schedule->is_active) {
|
||||
$this->markTaskNotQueued();
|
||||
$this->markScheduleComplete();
|
||||
|
||||
@@ -80,8 +76,6 @@ class RunTaskJob extends Job implements ShouldQueue
|
||||
|
||||
/**
|
||||
* Handle a failure while sending the action to the daemon or otherwise processing the job.
|
||||
*
|
||||
* @param \Exception|null $exception
|
||||
*/
|
||||
public function failed(Exception $exception = null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user