Skip to content

Commit 265b697

Browse files
authored
Apply fixes from StyleCI (pterodactyl#471)
1 parent 2f0f002 commit 265b697

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

app/Http/Controllers/Server/AjaxController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
use Pterodactyl\Models;
2929
use Illuminate\Http\Request;
3030
use Pterodactyl\Repositories;
31-
use GuzzleHttp\Exception\RequestException;
3231
use Pterodactyl\Exceptions\DisplayException;
3332
use Pterodactyl\Http\Controllers\Controller;
3433
use Pterodactyl\Exceptions\DisplayValidationException;

app/Repositories/Daemon/FileRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function returnDirectoryListing($directory)
146146

147147
try {
148148
$res = $this->server->guzzleClient()->request('GET', '/server/directory/' . rawurlencode($directory));
149-
} catch(\GuzzleHttp\Exception\ClientException $ex) {
149+
} catch (\GuzzleHttp\Exception\ClientException $ex) {
150150
$json = json_decode($ex->getResponse()->getBody());
151151

152152
throw new DisplayException($json->error);

app/Repositories/ServerRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ protected function parseVariables(Server $server)
724724
$allocations = $server->allocations->where('id', '!=', $server->allocation_id);
725725
$i = 0;
726726

727-
foreach($allocations as $allocation) {
727+
foreach ($allocations as $allocation) {
728728
$merge[] = [
729729
'variable' => 'ALLOC_' . $i . '__PORT',
730730
'value' => $allocation->port,

0 commit comments

Comments
 (0)