mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 00:34:44 +02:00
Formatting
This commit is contained in:
parent
1172fec6e5
commit
f7c2c1a84c
@ -21,7 +21,6 @@ class DynamicDatabaseConnection
|
||||
|
||||
/**
|
||||
* Adds a dynamic database connection entry to the runtime config.
|
||||
*
|
||||
*/
|
||||
public function set(string $connection, DatabaseHost|int $host, string $database = 'mysql'): void
|
||||
{
|
||||
|
@ -46,7 +46,6 @@ class DatabaseController extends Controller
|
||||
|
||||
/**
|
||||
* Display database host to user.
|
||||
*
|
||||
*/
|
||||
public function view(int $host): View
|
||||
{
|
||||
|
@ -39,7 +39,6 @@ class EggController extends Controller
|
||||
|
||||
/**
|
||||
* Handle a request to display the Egg creation page.
|
||||
*
|
||||
*/
|
||||
public function create(): View
|
||||
{
|
||||
|
@ -37,7 +37,6 @@ class MountController extends Controller
|
||||
|
||||
/**
|
||||
* Return the mount view page.
|
||||
*
|
||||
*/
|
||||
public function view(string $id): View
|
||||
{
|
||||
|
@ -26,7 +26,6 @@ class CreateServerController extends Controller
|
||||
|
||||
/**
|
||||
* Displays the create server page.
|
||||
*
|
||||
*/
|
||||
public function index(): View|RedirectResponse
|
||||
{
|
||||
|
@ -58,7 +58,6 @@ class ServerViewController extends Controller
|
||||
|
||||
/**
|
||||
* Returns the server startup management page.
|
||||
*
|
||||
*/
|
||||
public function startup(Request $request, Server $server): View
|
||||
{
|
||||
|
@ -8,7 +8,6 @@ use App\Facades\Activity;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
use GuzzleHttp\Exception\BadResponseException;
|
||||
use Symfony\Component\HttpKernel\Exception\HttpException;
|
||||
use App\Repositories\Daemon\DaemonCommandRepository;
|
||||
use App\Http\Controllers\Api\Client\ClientApiController;
|
||||
use App\Http\Requests\Api\Client\Servers\SendCommandRequest;
|
||||
use App\Exceptions\Http\Connection\DaemonConnectionException;
|
||||
|
@ -85,7 +85,6 @@ class DatabaseController extends ClientApiController
|
||||
|
||||
/**
|
||||
* Removes a database from the server.
|
||||
*
|
||||
*/
|
||||
public function delete(DeleteDatabaseRequest $request, Server $server, Database $database): Response
|
||||
{
|
||||
|
@ -20,7 +20,6 @@ class EggInstallController extends Controller
|
||||
/**
|
||||
* Handle request to get script and installation information for a server
|
||||
* that is being created on the node.
|
||||
*
|
||||
*/
|
||||
public function index(Request $request, string $uuid): JsonResponse
|
||||
{
|
||||
|
@ -7,7 +7,6 @@ use Illuminate\Http\Response;
|
||||
use App\Models\Server;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Repositories\Eloquent\ServerRepository;
|
||||
use App\Events\Server\Installed as ServerInstalled;
|
||||
use Illuminate\Contracts\Events\Dispatcher as EventDispatcher;
|
||||
use App\Http\Requests\Api\Remote\InstallationDataRequest;
|
||||
|
@ -9,7 +9,6 @@ use Illuminate\Http\JsonResponse;
|
||||
use PragmaRX\Google2FA\Google2FA;
|
||||
use Illuminate\Support\Facades\Event;
|
||||
use Illuminate\Contracts\Encryption\Encrypter;
|
||||
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||
use App\Events\Auth\ProvidedAuthenticationToken;
|
||||
use App\Http\Requests\Auth\LoginCheckpointRequest;
|
||||
use Illuminate\Contracts\Validation\Factory as ValidationFactory;
|
||||
|
@ -5,14 +5,14 @@ namespace App\Http\Controllers\Base;
|
||||
use Illuminate\View\View;
|
||||
use Illuminate\View\Factory as ViewFactory;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Contracts\Repository\ServerRepositoryInterface;
|
||||
|
||||
class IndexController extends Controller
|
||||
{
|
||||
/**
|
||||
* IndexController constructor.
|
||||
*/
|
||||
public function __construct(protected ViewFactory $view) {
|
||||
public function __construct(protected ViewFactory $view)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -111,7 +111,6 @@ class Database extends Model
|
||||
return $this->belongsTo(Server::class);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Run the provided statement against the database on a given connection.
|
||||
*/
|
||||
|
@ -8,7 +8,6 @@ use Illuminate\Container\Container;
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
use Illuminate\Contracts\Encryption\Encrypter;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\Relations\HasManyThrough;
|
||||
|
||||
/**
|
||||
|
@ -3,7 +3,6 @@
|
||||
namespace App\Models;
|
||||
|
||||
use App\Exceptions\Http\Connection\DaemonConnectionException;
|
||||
use Carbon\Carbon;
|
||||
use GuzzleHttp\Exception\GuzzleException;
|
||||
use GuzzleHttp\Exception\TransferException;
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
|
@ -31,7 +31,6 @@ class Setting extends Model
|
||||
|
||||
/**
|
||||
* Store a new persistent setting in the database.
|
||||
*
|
||||
*/
|
||||
public static function set(string $key, string $value = null): void
|
||||
{
|
||||
|
@ -102,6 +102,7 @@ class AllocationSelectionService
|
||||
foreach ($ports as $port) {
|
||||
if (is_array($port)) {
|
||||
$inner->orWhereBetween('port', $port);
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -9,10 +9,8 @@ use App\Models\EggVariable;
|
||||
|
||||
class EggExporterService
|
||||
{
|
||||
|
||||
/**
|
||||
* Return a JSON representation of an egg and its variables.
|
||||
*
|
||||
*/
|
||||
public function handle(int $egg): string
|
||||
{
|
||||
|
@ -3,7 +3,6 @@
|
||||
namespace App\Transformers\Api\Application;
|
||||
|
||||
use App\Models\Node;
|
||||
use League\Fractal\Resource\Item;
|
||||
use League\Fractal\Resource\Collection;
|
||||
use League\Fractal\Resource\NullResource;
|
||||
use App\Services\Acl\Api\AdminAcl;
|
||||
|
@ -8,7 +8,6 @@ use App\Models\Server;
|
||||
use App\Models\Permission;
|
||||
use GuzzleHttp\Exception\BadResponseException;
|
||||
use GuzzleHttp\Psr7\Response as GuzzleResponse;
|
||||
use App\Repositories\Daemon\DaemonCommandRepository;
|
||||
use App\Exceptions\Http\Connection\DaemonConnectionException;
|
||||
use App\Tests\Integration\Api\Client\ClientApiIntegrationTestCase;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user