Skip to content

Commit 432e28b

Browse files
committed
Fix all StyleCI errors and probably break everything in the process
1 parent b5e5071 commit 432e28b

File tree

12 files changed

+25
-27
lines changed

12 files changed

+25
-27
lines changed

app/Console/Commands/Environment/EmailSettingsCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ public function __construct(ConfigRepository $config)
6565
public function handle()
6666
{
6767
$this->variables['MAIL_DRIVER'] = $this->option('driver') ?? $this->choice(
68-
trans('command/messages.environment.mail.ask_driver'), [
68+
trans('command/messages.environment.mail.ask_driver'), [
6969
'smtp' => 'SMTP Server',
7070
'mail' => 'PHP\'s Internal Mail Function',
7171
'mailgun' => 'Mailgun Transactional Email',
7272
'mandrill' => 'Mandrill Transactional Email',
7373
'postmark' => 'Postmarkapp Transactional Email',
7474
], $this->config->get('mail.driver', 'smtp')
75-
);
75+
);
7676

7777
$method = 'setup' . studly_case($this->variables['MAIL_DRIVER']) . 'DriverVariables';
7878
if (method_exists($this, $method)) {

app/Http/Controllers/Admin/DatabaseController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ public function update(DatabaseHostFormRequest $request, DatabaseHost $host): Re
165165
$this->alert->danger(
166166
sprintf('There was an error while trying to connect to the host or while executing a query: "%s"', $exception->getMessage())
167167
)->flash();
168+
168169
return $redirect->withInput($request->normalize());
169170
} else {
170171
throw $exception;

app/Http/Controllers/Api/Client/Servers/ScheduleTaskController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function update(StoreTaskRequest $request, Server $server, Schedule $sche
8686
}
8787

8888
$this->repository->update($task->id, [
89-
'action' => $request->input('action'),
89+
'action' => $request->input('action'),
9090
'payload' => $request->input('payload'),
9191
'time_offset' => $request->input('time_offset'),
9292
]);

app/Http/Controllers/Api/Remote/Servers/ServerBackupController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
namespace Pterodactyl\Http\Controllers\Api\Remote\Servers;
44

55
use Carbon\Carbon;
6-
use Illuminate\Http\Request;
7-
use Pterodactyl\Models\Server;
86
use Illuminate\Http\JsonResponse;
97
use Pterodactyl\Http\Controllers\Controller;
108
use Pterodactyl\Repositories\Eloquent\BackupRepository;

app/Services/Nodes/NodeUpdateService.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use GuzzleHttp\Exception\RequestException;
99
use Illuminate\Database\ConnectionInterface;
1010
use Illuminate\Contracts\Encryption\Encrypter;
11-
use Pterodactyl\Repositories\Daemon\ConfigurationRepository;
1211
use Pterodactyl\Contracts\Repository\NodeRepositoryInterface;
1312
use Pterodactyl\Repositories\Wings\DaemonConfigurationRepository;
1413
use Pterodactyl\Exceptions\Http\Connection\DaemonConnectionException;

config/ide-helper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@
168168
| Cast the given "real type" to the given "type".
169169
|
170170
*/
171-
'type_overrides' => [
171+
'type_overrides' => [
172172
'integer' => 'int',
173173
'boolean' => 'bool',
174-
],
174+
],
175175
];

database/factories/ModelFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
use Ramsey\Uuid\Uuid;
44
use Cake\Chronos\Chronos;
55
use Illuminate\Support\Str;
6-
use Faker\Generator as Faker;
76
use Pterodactyl\Models\Node;
7+
use Faker\Generator as Faker;
88
use Pterodactyl\Models\ApiKey;
99

1010
/*

database/migrations/2017_10_02_202000_ChangeServicesToUseAMoreUniqueIdentifier.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ public function up()
2626

2727
DB::table('services')->get(['id', 'author', 'uuid'])->each(function ($service) {
2828
DB::table('services')->where('id', $service->id)->update([
29-
'author' => ($service->author === 'ptrdctyl-v040-11e6-8b77-86f30ca893d3') ? 'support@pterodactyl.io' : 'unknown@unknown-author.com',
30-
'uuid' => Uuid::uuid4()->toString(),
29+
'author' => ($service->author === 'ptrdctyl-v040-11e6-8b77-86f30ca893d3') ? 'support@pterodactyl.io' : 'unknown@unknown-author.com',
30+
'uuid' => Uuid::uuid4()->toString(),
3131
]);
3232
});
3333

database/migrations/2020_03_22_163911_merge_permissions_table_into_subusers.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ public function down()
4444
{
4545
foreach (DB::select('SELECT id, permissions FROM subusers') as $datum) {
4646
$values = [];
47-
foreach(json_decode($datum->permissions, true) as $permission) {
47+
foreach (json_decode($datum->permissions, true) as $permission) {
4848
$values[] = $datum->id;
4949
$values[] = $permission;
5050
}
5151

52-
if (!empty($values)) {
52+
if (! empty($values)) {
5353
$string = 'VALUES ' . implode(', ', array_fill(0, count($values) / 2, '(?, ?)'));
5454

5555
DB::insert('INSERT INTO permissions(`subuser_id`, `permission`) ' . $string, $values);

database/migrations/2020_04_03_230614_create_backups_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
use Illuminate\Database\Migrations\Migration;
4-
use Illuminate\Database\Schema\Blueprint;
53
use Illuminate\Support\Facades\Schema;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Database\Migrations\Migration;
66

77
class CreateBackupsTable extends Migration
88
{

0 commit comments

Comments
 (0)