Use more standardized phpcs

This commit is contained in:
Dane Everitt 2021-01-23 12:33:34 -08:00
parent a043071e3c
commit c449ca5155
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
493 changed files with 1116 additions and 3903 deletions

View file

@ -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)
{