diff --git a/app/Extensions/DynamicDatabaseConnection.php b/app/Extensions/DynamicDatabaseConnection.php index 2809f1fa2..25d7fc2d7 100644 --- a/app/Extensions/DynamicDatabaseConnection.php +++ b/app/Extensions/DynamicDatabaseConnection.php @@ -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 { diff --git a/app/Http/Controllers/Admin/DatabaseController.php b/app/Http/Controllers/Admin/DatabaseController.php index a27d0e8e7..2ab9cb33c 100644 --- a/app/Http/Controllers/Admin/DatabaseController.php +++ b/app/Http/Controllers/Admin/DatabaseController.php @@ -46,7 +46,6 @@ class DatabaseController extends Controller /** * Display database host to user. - * */ public function view(int $host): View { diff --git a/app/Http/Controllers/Admin/Eggs/EggController.php b/app/Http/Controllers/Admin/Eggs/EggController.php index 258b47928..201cea986 100644 --- a/app/Http/Controllers/Admin/Eggs/EggController.php +++ b/app/Http/Controllers/Admin/Eggs/EggController.php @@ -39,7 +39,6 @@ class EggController extends Controller /** * Handle a request to display the Egg creation page. - * */ public function create(): View { diff --git a/app/Http/Controllers/Admin/MountController.php b/app/Http/Controllers/Admin/MountController.php index 3a96f6552..bf832e77f 100644 --- a/app/Http/Controllers/Admin/MountController.php +++ b/app/Http/Controllers/Admin/MountController.php @@ -37,7 +37,6 @@ class MountController extends Controller /** * Return the mount view page. - * */ public function view(string $id): View { diff --git a/app/Http/Controllers/Admin/Servers/CreateServerController.php b/app/Http/Controllers/Admin/Servers/CreateServerController.php index 977706d4d..fdef2f70e 100644 --- a/app/Http/Controllers/Admin/Servers/CreateServerController.php +++ b/app/Http/Controllers/Admin/Servers/CreateServerController.php @@ -26,7 +26,6 @@ class CreateServerController extends Controller /** * Displays the create server page. - * */ public function index(): View|RedirectResponse { diff --git a/app/Http/Controllers/Admin/Servers/ServerViewController.php b/app/Http/Controllers/Admin/Servers/ServerViewController.php index 4a6758769..5763ee238 100644 --- a/app/Http/Controllers/Admin/Servers/ServerViewController.php +++ b/app/Http/Controllers/Admin/Servers/ServerViewController.php @@ -58,7 +58,6 @@ class ServerViewController extends Controller /** * Returns the server startup management page. - * */ public function startup(Request $request, Server $server): View { diff --git a/app/Http/Controllers/Api/Client/Servers/CommandController.php b/app/Http/Controllers/Api/Client/Servers/CommandController.php index 95f49fa9c..2651513c9 100644 --- a/app/Http/Controllers/Api/Client/Servers/CommandController.php +++ b/app/Http/Controllers/Api/Client/Servers/CommandController.php @@ -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; diff --git a/app/Http/Controllers/Api/Client/Servers/DatabaseController.php b/app/Http/Controllers/Api/Client/Servers/DatabaseController.php index e1861fd59..a441bd91b 100644 --- a/app/Http/Controllers/Api/Client/Servers/DatabaseController.php +++ b/app/Http/Controllers/Api/Client/Servers/DatabaseController.php @@ -85,7 +85,6 @@ class DatabaseController extends ClientApiController /** * Removes a database from the server. - * */ public function delete(DeleteDatabaseRequest $request, Server $server, Database $database): Response { diff --git a/app/Http/Controllers/Api/Remote/EggInstallController.php b/app/Http/Controllers/Api/Remote/EggInstallController.php index 5650689bb..27de437b2 100644 --- a/app/Http/Controllers/Api/Remote/EggInstallController.php +++ b/app/Http/Controllers/Api/Remote/EggInstallController.php @@ -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 { diff --git a/app/Http/Controllers/Api/Remote/Servers/ServerInstallController.php b/app/Http/Controllers/Api/Remote/Servers/ServerInstallController.php index 6fd488616..011c62ae6 100644 --- a/app/Http/Controllers/Api/Remote/Servers/ServerInstallController.php +++ b/app/Http/Controllers/Api/Remote/Servers/ServerInstallController.php @@ -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; diff --git a/app/Http/Controllers/Auth/LoginCheckpointController.php b/app/Http/Controllers/Auth/LoginCheckpointController.php index 75bab4fd0..473b12f26 100644 --- a/app/Http/Controllers/Auth/LoginCheckpointController.php +++ b/app/Http/Controllers/Auth/LoginCheckpointController.php @@ -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; diff --git a/app/Http/Controllers/Base/IndexController.php b/app/Http/Controllers/Base/IndexController.php index 9b32a5588..1c0bdd35a 100644 --- a/app/Http/Controllers/Base/IndexController.php +++ b/app/Http/Controllers/Base/IndexController.php @@ -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) + { } /** diff --git a/app/Models/Database.php b/app/Models/Database.php index c9a469a49..d4eed95c5 100644 --- a/app/Models/Database.php +++ b/app/Models/Database.php @@ -111,7 +111,6 @@ class Database extends Model return $this->belongsTo(Server::class); } - /** * Run the provided statement against the database on a given connection. */ diff --git a/app/Models/Node.php b/app/Models/Node.php index a419cd73b..42cb354cb 100644 --- a/app/Models/Node.php +++ b/app/Models/Node.php @@ -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; /** diff --git a/app/Models/Server.php b/app/Models/Server.php index 290dd5ec4..23a87781e 100644 --- a/app/Models/Server.php +++ b/app/Models/Server.php @@ -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; diff --git a/app/Models/Setting.php b/app/Models/Setting.php index 000de0c6f..4d4087f7c 100644 --- a/app/Models/Setting.php +++ b/app/Models/Setting.php @@ -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 { diff --git a/app/Models/User.php b/app/Models/User.php index 3f845e6a3..690c8012e 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -81,7 +81,7 @@ use App\Notifications\SendPasswordReset as ResetPasswordNotification; class User extends Model implements AuthenticatableContract, AuthorizableContract, CanResetPasswordContract { use Authenticatable; - use Authorizable {can as protected canned;} + use Authorizable {can as protected canned; } use AvailableLanguages; use CanResetPassword; use HasAccessTokens; diff --git a/app/Services/Deployment/AllocationSelectionService.php b/app/Services/Deployment/AllocationSelectionService.php index 24a45f582..46dcc2603 100644 --- a/app/Services/Deployment/AllocationSelectionService.php +++ b/app/Services/Deployment/AllocationSelectionService.php @@ -102,6 +102,7 @@ class AllocationSelectionService foreach ($ports as $port) { if (is_array($port)) { $inner->orWhereBetween('port', $port); + continue; } diff --git a/app/Services/Eggs/Sharing/EggExporterService.php b/app/Services/Eggs/Sharing/EggExporterService.php index 9787bbf7f..92cfa7639 100644 --- a/app/Services/Eggs/Sharing/EggExporterService.php +++ b/app/Services/Eggs/Sharing/EggExporterService.php @@ -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 { diff --git a/app/Transformers/Api/Application/NodeTransformer.php b/app/Transformers/Api/Application/NodeTransformer.php index fbba837df..6ef367dfb 100644 --- a/app/Transformers/Api/Application/NodeTransformer.php +++ b/app/Transformers/Api/Application/NodeTransformer.php @@ -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; diff --git a/tests/Integration/Api/Client/Server/CommandControllerTest.php b/tests/Integration/Api/Client/Server/CommandControllerTest.php index b80393e0d..527903d00 100644 --- a/tests/Integration/Api/Client/Server/CommandControllerTest.php +++ b/tests/Integration/Api/Client/Server/CommandControllerTest.php @@ -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;