Apply fixes from StyleCI

This commit is contained in:
Dane Everitt 2017-03-19 23:52:11 +00:00 committed by StyleCI Bot
parent c98d1dda26
commit f0057353ad
10 changed files with 13 additions and 17 deletions

View file

@ -72,6 +72,7 @@ class RebuildServer extends Command
$servers = Server::where('id', $this->option('server'))->get();
} else {
$this->error('You must pass a flag to determine which server(s) to rebuild.');
return;
}

View file

@ -32,7 +32,6 @@ use Dingo\Api\Exception\ResourceException;
use Pterodactyl\Exceptions\DisplayException;
use Pterodactyl\Repositories\NodeRepository;
use Pterodactyl\Exceptions\DisplayValidationException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
use Symfony\Component\HttpKernel\Exception\ServiceUnavailableHttpException;

View file

@ -31,7 +31,6 @@ use Dingo\Api\Exception\ResourceException;
use Pterodactyl\Exceptions\DisplayException;
use Pterodactyl\Repositories\ServerRepository;
use Pterodactyl\Exceptions\DisplayValidationException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
use Symfony\Component\HttpKernel\Exception\ServiceUnavailableHttpException;

View file

@ -26,7 +26,6 @@ namespace Pterodactyl\Http\Controllers\API;
use Illuminate\Http\Request;
use Pterodactyl\Models\Service;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
class ServiceController extends BaseController
{

View file

@ -30,7 +30,6 @@ use Dingo\Api\Exception\ResourceException;
use Pterodactyl\Exceptions\DisplayException;
use Pterodactyl\Repositories\UserRepository;
use Pterodactyl\Exceptions\DisplayValidationException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpKernel\Exception\ServiceUnavailableHttpException;
class UserController extends BaseController

View file

@ -202,7 +202,6 @@ class PackController extends Controller
return response()->download($filename, 'pack-' . $pack->name . '.zip')->deleteFileAfterSend(true);
} else {
$fp = fopen($filename, 'a+');
fwrite($fp, json_encode($json, JSON_PRETTY_PRINT));
fclose($fp);

View file

@ -116,6 +116,7 @@ class User extends Model implements AuthenticatableContract, AuthorizableContrac
}
$this->use_totp = ! $this->use_totp;
return $this->save();
}

View file

@ -25,7 +25,6 @@
namespace Pterodactyl\Repositories\Daemon;
use Pterodactyl\Models;
use GuzzleHttp\Exception\RequestException;
use Pterodactyl\Exceptions\DisplayException;
class CommandRepository

View file

@ -720,7 +720,7 @@ class ServerRepository
}
/**
* Queue a server for deletion
* Queue a server for deletion.
*
* @param int $id
* @param bool $force

View file

@ -31,7 +31,7 @@ use Pterodactyl\Models\APILog;
class APILogService
{
/**
* Log an API Request
* Log an API Request.
*
* @param \Illuminate\Http\Request $request
* @param null|string $error