Apply fixes from StyleCI (#471)

This commit is contained in:
Dane Everitt 2017-06-03 17:07:50 -05:00 committed by GitHub
parent 2f0f002299
commit 265b697066
3 changed files with 2 additions and 3 deletions

View file

@ -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;

View file

@ -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);

View file

@ -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,