Skip to content

Commit f005735

Browse files
DaneEverittStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent c98d1dd commit f005735

File tree

10 files changed

+13
-17
lines changed

10 files changed

+13
-17
lines changed

app/Console/Commands/RebuildServer.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ public function handle()
7272
$servers = Server::where('id', $this->option('server'))->get();
7373
} else {
7474
$this->error('You must pass a flag to determine which server(s) to rebuild.');
75+
7576
return;
7677
}
7778

@@ -80,7 +81,7 @@ public function handle()
8081
$this->line('Beginning processing, do not exit this script.');
8182
$bar = $this->output->createProgressBar(count($servers));
8283
$results = collect([]);
83-
foreach($servers as $server) {
84+
foreach ($servers as $server) {
8485
try {
8586
$environment = $server->option->variables->map(function ($item, $key) use ($server) {
8687
$display = $server->variables->where('variable_id', $item->id)->pluck('variable_value')->first();
@@ -136,7 +137,7 @@ public function handle()
136137

137138
$this->line("\n");
138139
$results->each(function ($item, $key) use ($console) {
139-
foreach($item['messages'] as $line) {
140+
foreach ($item['messages'] as $line) {
140141
$console->{$item['status']}($line);
141142
}
142143
});

app/Http/Controllers/API/NodeController.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
use Pterodactyl\Exceptions\DisplayException;
3333
use Pterodactyl\Repositories\NodeRepository;
3434
use Pterodactyl\Exceptions\DisplayValidationException;
35-
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
3635
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
3736
use Symfony\Component\HttpKernel\Exception\ServiceUnavailableHttpException;
3837

@@ -113,13 +112,13 @@ public function view(Request $request, $id, $fields = null)
113112
return $node->toArray();
114113
}
115114

116-
/**
117-
* Returns a configuration file for a given node.
118-
*
119-
* @param Request $request
120-
* @param int $id
121-
* @return array
122-
*/
115+
/**
116+
* Returns a configuration file for a given node.
117+
*
118+
* @param Request $request
119+
* @param int $id
120+
* @return array
121+
*/
123122
public function config(Request $request, $id)
124123
{
125124
$node = Node::findOrFail($id);

app/Http/Controllers/API/ServerController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
use Pterodactyl\Exceptions\DisplayException;
3232
use Pterodactyl\Repositories\ServerRepository;
3333
use Pterodactyl\Exceptions\DisplayValidationException;
34-
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
3534
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
3635
use Symfony\Component\HttpKernel\Exception\ServiceUnavailableHttpException;
3736

app/Http/Controllers/API/ServiceController.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\Service;
29-
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
3029

3130
class ServiceController extends BaseController
3231
{

app/Http/Controllers/API/UserController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
use Pterodactyl\Exceptions\DisplayException;
3131
use Pterodactyl\Repositories\UserRepository;
3232
use Pterodactyl\Exceptions\DisplayValidationException;
33-
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
3433
use Symfony\Component\HttpKernel\Exception\ServiceUnavailableHttpException;
3534

3635
class UserController extends BaseController

app/Http/Controllers/Admin/PackController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ public function export(Request $request, $id, $files = false)
202202

203203
return response()->download($filename, 'pack-' . $pack->name . '.zip')->deleteFileAfterSend(true);
204204
} else {
205-
206205
$fp = fopen($filename, 'a+');
207206
fwrite($fp, json_encode($json, JSON_PRETTY_PRINT));
208207
fclose($fp);

app/Models/User.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ public function toggleTotp($token)
116116
}
117117

118118
$this->use_totp = ! $this->use_totp;
119+
119120
return $this->save();
120121
}
121122

app/Repositories/Daemon/CommandRepository.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
namespace Pterodactyl\Repositories\Daemon;
2626

2727
use Pterodactyl\Models;
28-
use GuzzleHttp\Exception\RequestException;
2928
use Pterodactyl\Exceptions\DisplayException;
3029

3130
class CommandRepository

app/Repositories/ServerRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ public function updateStartup($id, array $data, $admin = false)
720720
}
721721

722722
/**
723-
* Queue a server for deletion
723+
* Queue a server for deletion.
724724
*
725725
* @param int $id
726726
* @param bool $force

app/Services/APILogService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
class APILogService
3232
{
3333
/**
34-
* Log an API Request
34+
* Log an API Request.
3535
*
3636
* @param \Illuminate\Http\Request $request
3737
* @param null|string $error

0 commit comments

Comments
 (0)