Formatting

This commit is contained in:
Lance Pioch 2024-03-17 00:40:18 -04:00
parent 1172fec6e5
commit f7c2c1a84c
21 changed files with 4 additions and 22 deletions

View File

@ -21,7 +21,6 @@ class DynamicDatabaseConnection
/** /**
* Adds a dynamic database connection entry to the runtime config. * Adds a dynamic database connection entry to the runtime config.
*
*/ */
public function set(string $connection, DatabaseHost|int $host, string $database = 'mysql'): void public function set(string $connection, DatabaseHost|int $host, string $database = 'mysql'): void
{ {

View File

@ -46,7 +46,6 @@ class DatabaseController extends Controller
/** /**
* Display database host to user. * Display database host to user.
*
*/ */
public function view(int $host): View public function view(int $host): View
{ {

View File

@ -39,7 +39,6 @@ class EggController extends Controller
/** /**
* Handle a request to display the Egg creation page. * Handle a request to display the Egg creation page.
*
*/ */
public function create(): View public function create(): View
{ {

View File

@ -37,7 +37,6 @@ class MountController extends Controller
/** /**
* Return the mount view page. * Return the mount view page.
*
*/ */
public function view(string $id): View public function view(string $id): View
{ {

View File

@ -26,7 +26,6 @@ class CreateServerController extends Controller
/** /**
* Displays the create server page. * Displays the create server page.
*
*/ */
public function index(): View|RedirectResponse public function index(): View|RedirectResponse
{ {

View File

@ -58,7 +58,6 @@ class ServerViewController extends Controller
/** /**
* Returns the server startup management page. * Returns the server startup management page.
*
*/ */
public function startup(Request $request, Server $server): View public function startup(Request $request, Server $server): View
{ {

View File

@ -8,7 +8,6 @@ use App\Facades\Activity;
use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ResponseInterface;
use GuzzleHttp\Exception\BadResponseException; use GuzzleHttp\Exception\BadResponseException;
use Symfony\Component\HttpKernel\Exception\HttpException; use Symfony\Component\HttpKernel\Exception\HttpException;
use App\Repositories\Daemon\DaemonCommandRepository;
use App\Http\Controllers\Api\Client\ClientApiController; use App\Http\Controllers\Api\Client\ClientApiController;
use App\Http\Requests\Api\Client\Servers\SendCommandRequest; use App\Http\Requests\Api\Client\Servers\SendCommandRequest;
use App\Exceptions\Http\Connection\DaemonConnectionException; use App\Exceptions\Http\Connection\DaemonConnectionException;

View File

@ -85,7 +85,6 @@ class DatabaseController extends ClientApiController
/** /**
* Removes a database from the server. * Removes a database from the server.
*
*/ */
public function delete(DeleteDatabaseRequest $request, Server $server, Database $database): Response public function delete(DeleteDatabaseRequest $request, Server $server, Database $database): Response
{ {

View File

@ -20,7 +20,6 @@ class EggInstallController extends Controller
/** /**
* Handle request to get script and installation information for a server * Handle request to get script and installation information for a server
* that is being created on the node. * that is being created on the node.
*
*/ */
public function index(Request $request, string $uuid): JsonResponse public function index(Request $request, string $uuid): JsonResponse
{ {

View File

@ -7,7 +7,6 @@ use Illuminate\Http\Response;
use App\Models\Server; use App\Models\Server;
use Illuminate\Http\JsonResponse; use Illuminate\Http\JsonResponse;
use App\Http\Controllers\Controller; use App\Http\Controllers\Controller;
use App\Repositories\Eloquent\ServerRepository;
use App\Events\Server\Installed as ServerInstalled; use App\Events\Server\Installed as ServerInstalled;
use Illuminate\Contracts\Events\Dispatcher as EventDispatcher; use Illuminate\Contracts\Events\Dispatcher as EventDispatcher;
use App\Http\Requests\Api\Remote\InstallationDataRequest; use App\Http\Requests\Api\Remote\InstallationDataRequest;

View File

@ -9,7 +9,6 @@ use Illuminate\Http\JsonResponse;
use PragmaRX\Google2FA\Google2FA; use PragmaRX\Google2FA\Google2FA;
use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\Event;
use Illuminate\Contracts\Encryption\Encrypter; use Illuminate\Contracts\Encryption\Encrypter;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use App\Events\Auth\ProvidedAuthenticationToken; use App\Events\Auth\ProvidedAuthenticationToken;
use App\Http\Requests\Auth\LoginCheckpointRequest; use App\Http\Requests\Auth\LoginCheckpointRequest;
use Illuminate\Contracts\Validation\Factory as ValidationFactory; use Illuminate\Contracts\Validation\Factory as ValidationFactory;

View File

@ -5,14 +5,14 @@ namespace App\Http\Controllers\Base;
use Illuminate\View\View; use Illuminate\View\View;
use Illuminate\View\Factory as ViewFactory; use Illuminate\View\Factory as ViewFactory;
use App\Http\Controllers\Controller; use App\Http\Controllers\Controller;
use App\Contracts\Repository\ServerRepositoryInterface;
class IndexController extends Controller class IndexController extends Controller
{ {
/** /**
* IndexController constructor. * IndexController constructor.
*/ */
public function __construct(protected ViewFactory $view) { public function __construct(protected ViewFactory $view)
{
} }
/** /**

View File

@ -111,7 +111,6 @@ class Database extends Model
return $this->belongsTo(Server::class); return $this->belongsTo(Server::class);
} }
/** /**
* Run the provided statement against the database on a given connection. * Run the provided statement against the database on a given connection.
*/ */

View File

@ -8,7 +8,6 @@ use Illuminate\Container\Container;
use Illuminate\Notifications\Notifiable; use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Encryption\Encrypter; use Illuminate\Contracts\Encryption\Encrypter;
use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasManyThrough; use Illuminate\Database\Eloquent\Relations\HasManyThrough;
/** /**

View File

@ -3,7 +3,6 @@
namespace App\Models; namespace App\Models;
use App\Exceptions\Http\Connection\DaemonConnectionException; use App\Exceptions\Http\Connection\DaemonConnectionException;
use Carbon\Carbon;
use GuzzleHttp\Exception\GuzzleException; use GuzzleHttp\Exception\GuzzleException;
use GuzzleHttp\Exception\TransferException; use GuzzleHttp\Exception\TransferException;
use Illuminate\Notifications\Notifiable; use Illuminate\Notifications\Notifiable;

View File

@ -31,7 +31,6 @@ class Setting extends Model
/** /**
* Store a new persistent setting in the database. * Store a new persistent setting in the database.
*
*/ */
public static function set(string $key, string $value = null): void public static function set(string $key, string $value = null): void
{ {

View File

@ -81,7 +81,7 @@ use App\Notifications\SendPasswordReset as ResetPasswordNotification;
class User extends Model implements AuthenticatableContract, AuthorizableContract, CanResetPasswordContract class User extends Model implements AuthenticatableContract, AuthorizableContract, CanResetPasswordContract
{ {
use Authenticatable; use Authenticatable;
use Authorizable {can as protected canned;} use Authorizable {can as protected canned; }
use AvailableLanguages; use AvailableLanguages;
use CanResetPassword; use CanResetPassword;
use HasAccessTokens; use HasAccessTokens;

View File

@ -102,6 +102,7 @@ class AllocationSelectionService
foreach ($ports as $port) { foreach ($ports as $port) {
if (is_array($port)) { if (is_array($port)) {
$inner->orWhereBetween('port', $port); $inner->orWhereBetween('port', $port);
continue; continue;
} }

View File

@ -9,10 +9,8 @@ use App\Models\EggVariable;
class EggExporterService class EggExporterService
{ {
/** /**
* Return a JSON representation of an egg and its variables. * Return a JSON representation of an egg and its variables.
*
*/ */
public function handle(int $egg): string public function handle(int $egg): string
{ {

View File

@ -3,7 +3,6 @@
namespace App\Transformers\Api\Application; namespace App\Transformers\Api\Application;
use App\Models\Node; use App\Models\Node;
use League\Fractal\Resource\Item;
use League\Fractal\Resource\Collection; use League\Fractal\Resource\Collection;
use League\Fractal\Resource\NullResource; use League\Fractal\Resource\NullResource;
use App\Services\Acl\Api\AdminAcl; use App\Services\Acl\Api\AdminAcl;

View File

@ -8,7 +8,6 @@ use App\Models\Server;
use App\Models\Permission; use App\Models\Permission;
use GuzzleHttp\Exception\BadResponseException; use GuzzleHttp\Exception\BadResponseException;
use GuzzleHttp\Psr7\Response as GuzzleResponse; use GuzzleHttp\Psr7\Response as GuzzleResponse;
use App\Repositories\Daemon\DaemonCommandRepository;
use App\Exceptions\Http\Connection\DaemonConnectionException; use App\Exceptions\Http\Connection\DaemonConnectionException;
use App\Tests\Integration\Api\Client\ClientApiIntegrationTestCase; use App\Tests\Integration\Api\Client\ClientApiIntegrationTestCase;