Apply fixes from StyleCI (#471)
This commit is contained in:
parent
2f0f002299
commit
265b697066
3 changed files with 2 additions and 3 deletions
|
@ -28,7 +28,6 @@ use Log;
|
|||
use Pterodactyl\Models;
|
||||
use Illuminate\Http\Request;
|
||||
use Pterodactyl\Repositories;
|
||||
use GuzzleHttp\Exception\RequestException;
|
||||
use Pterodactyl\Exceptions\DisplayException;
|
||||
use Pterodactyl\Http\Controllers\Controller;
|
||||
use Pterodactyl\Exceptions\DisplayValidationException;
|
||||
|
|
|
@ -146,7 +146,7 @@ class FileRepository
|
|||
|
||||
try {
|
||||
$res = $this->server->guzzleClient()->request('GET', '/server/directory/' . rawurlencode($directory));
|
||||
} catch(\GuzzleHttp\Exception\ClientException $ex) {
|
||||
} catch (\GuzzleHttp\Exception\ClientException $ex) {
|
||||
$json = json_decode($ex->getResponse()->getBody());
|
||||
|
||||
throw new DisplayException($json->error);
|
||||
|
|
|
@ -724,7 +724,7 @@ class ServerRepository
|
|||
$allocations = $server->allocations->where('id', '!=', $server->allocation_id);
|
||||
$i = 0;
|
||||
|
||||
foreach($allocations as $allocation) {
|
||||
foreach ($allocations as $allocation) {
|
||||
$merge[] = [
|
||||
'variable' => 'ALLOC_' . $i . '__PORT',
|
||||
'value' => $allocation->port,
|
||||
|
|
Loading…
Reference in a new issue