Skip to content

Commit 77b1a25

Browse files
authored
Weekly fix of my StyleCI violations...
1 parent 0ca7148 commit 77b1a25

File tree

10 files changed

+6
-14
lines changed

10 files changed

+6
-14
lines changed

app/Console/Commands/UpdateEnvironment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function handle()
8585
$variables['SERVICE_AUTHOR'] = (string) Uuid::generate(4);
8686
}
8787

88-
if(isset($variables['APP_THEME'])) {
88+
if (isset($variables['APP_THEME'])) {
8989
if ($variables['APP_THEME'] === 'default') {
9090
$variables['APP_THEME'] = 'pterodactyl';
9191
}

app/Http/Controllers/Auth/LoginController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,11 @@
2626
namespace Pterodactyl\Http\Controllers\Auth;
2727

2828
use Auth;
29-
use Alert;
3029
use Cache;
3130
use Crypt;
3231
use Illuminate\Http\Request;
3332
use Pterodactyl\Models\User;
3433
use PragmaRX\Google2FA\Google2FA;
35-
use Pterodactyl\Events\Auth\FailedLogin;
3634
use Pterodactyl\Http\Controllers\Controller;
3735
use Illuminate\Foundation\Auth\AuthenticatesUsers;
3836

app/Http/Controllers/Daemon/OptionController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
use Illuminate\Http\Request;
2828
use Pterodactyl\Models\Server;
29-
use Pterodactyl\Models\ServiceOption;
3029
use Pterodactyl\Http\Controllers\Controller;
3130

3231
class OptionController extends Controller

app/Http/Controllers/Server/TaskController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
use Alert;
2929
use Illuminate\Http\Request;
3030
use Pterodactyl\Models\Server;
31-
use Pterodactyl\Repositories\TaskRepository;
3231
use Pterodactyl\Exceptions\DisplayException;
3332
use Pterodactyl\Http\Controllers\Controller;
33+
use Pterodactyl\Repositories\TaskRepository;
3434
use Pterodactyl\Exceptions\DisplayValidationException;
3535

3636
class TaskController extends Controller

app/Jobs/SendScheduledTask.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
use Cron;
2828
use Carbon;
2929
use Pterodactyl\Models\Task;
30-
use Pterodactyl\Models\User;
31-
use Pterodactyl\Models\Server;
3230
use Pterodactyl\Models\TaskLog;
3331
use Illuminate\Queue\SerializesModels;
3432
use Illuminate\Queue\InteractsWithQueue;
@@ -77,7 +75,7 @@ public function handle()
7775
if ($this->task->action === 'command') {
7876
$repo = new CommandRepository($this->task->server, $this->task->user);
7977
$response = $repo->send($this->task->data);
80-
} else if ($this->task->action === 'power') {
78+
} elseif ($this->task->action === 'power') {
8179
$repo = new PowerRepository($this->task->server, $this->task->user);
8280
$response = $repo->do($this->task->data);
8381
} else {

app/Repositories/DatabaseRepository.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
use DB;
2828
use Crypt;
29-
use Config;
3029
use Validator;
3130
use Pterodactyl\Models\Server;
3231
use Pterodactyl\Models\Database;

app/Repositories/ServerRepository.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,6 @@ public function changeBuild($id, array $data)
635635
*/
636636
protected function changeService($id, array $data)
637637
{
638-
639638
}
640639

641640
protected function processVariables(Models\Server $server, $data, $admin = false)
@@ -692,6 +691,7 @@ protected function processVariables(Models\Server $server, $data, $admin = false
692691

693692
// Reload Variables
694693
$server->load('variables');
694+
695695
return $server->option->variables->map(function ($item, $key) use ($server) {
696696
$display = $server->variables->where('variable_id', $item->id)->pluck('variable_value')->first();
697697

@@ -820,7 +820,6 @@ public function updateStartup($id, array $data, $admin = false)
820820

821821
return true;
822822
});
823-
824823
}
825824

826825
/**

app/Repositories/TaskRepository.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
namespace Pterodactyl\Repositories;
2626

27-
use DB;
2827
use Cron;
2928
use Validator;
3029
use Pterodactyl\Models\Task;

bootstrap/autoload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
|
1515
*/
1616

17-
require __DIR__.'/../vendor/autoload.php';
17+
require __DIR__ . '/../vendor/autoload.php';

database/migrations/2017_04_15_125021_UpgradeTaskSystem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function up()
2525
});
2626

2727
DB::transaction(function () {
28-
foreach(Task::all() as $task) {
28+
foreach (Task::all() as $task) {
2929
$task->user_id = $task->server->owner_id;
3030
$task->save();
3131
}

0 commit comments

Comments
 (0)