An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
Fix styling
samirimtiaz1996f3beacdc3fc0
diff --git a/app/Data/ServerMetadata.php b/app/Data/ServerMetadata.phpindex b96efa6224..d95944b15a 100644--- a/app/Data/ServerMetadata.php+++ b/app/Data/ServerMetadata.php@@ -11,6 +11,5 @@ class ServerMetadata extends Datapublic function __construct(public ?ProxyTypes $type,public ?ProxyStatus $status- ) {- }+ ) {}}diff --git a/app/Events/ProxyStarted.php b/app/Events/ProxyStarted.phpindex ed62eccb13..64d562e0a6 100644--- a/app/Events/ProxyStarted.php+++ b/app/Events/ProxyStarted.php@@ -10,8 +10,5 @@ class ProxyStarted{use Dispatchable, InteractsWithSockets, SerializesModels;- public function __construct(public $data)- {-- }+ public function __construct(public $data) {}}diff --git a/app/Exceptions/ProcessException.php b/app/Exceptions/ProcessException.phpindex 728a0d81b5..47eaa6fd81 100644--- a/app/Exceptions/ProcessException.php+++ b/app/Exceptions/ProcessException.php@@ -4,6 +4,4 @@ namespace App\Exceptions;use Exception;-class ProcessException extends Exception-{-}+class ProcessException extends Exception {}diff --git a/app/Http/Controllers/Api/Domains.php b/app/Http/Controllers/Api/Domains.phpindex 17ce5e1df9..86ff0cccca 100644--- a/app/Http/Controllers/Api/Domains.php+++ b/app/Http/Controllers/Api/Domains.php@@ -49,7 +49,7 @@ class Domains extends Controller'ip' => $settings->public_ipv6,]);}- if (!$settings->public_ipv4 && !$settings->public_ipv6) {+ if (! $settings->public_ipv4 && ! $settings->public_ipv6) {$domains->push(['domain' => $fqdn,'ip' => $ip,@@ -85,7 +85,7 @@ class Domains extends Controller'ip' => $settings->public_ipv6,]);}- if (!$settings->public_ipv4 && !$settings->public_ipv6) {+ if (! $settings->public_ipv4 && ! $settings->public_ipv6) {$domains->push(['domain' => $fqdn,'ip' => $ip,@@ -129,32 +129,33 @@ class Domains extends Controllerreturn response()->json(['success' => false,'message' => 'Validation failed',- 'errors' => $validator->errors()+ 'errors' => $validator->errors(),], 422);}$application = Application::where('uuid', $request->uuid)->first();- if (!$application) {+ if (! $application) {return response()->json(['success' => false,- 'message' => 'Application not found'+ 'message' => 'Application not found',], 404);}$existingDomains = explode(',', $application->fqdn);$newDomains = $request->domains;$filteredNewDomains = array_filter($newDomains, function ($domain) use ($existingDomains) {- return !in_array($domain, $existingDomains);+ return ! in_array($domain, $existingDomains);});$mergedDomains = array_unique(array_merge($existingDomains, $filteredNewDomains));$application->fqdn = implode(',', $mergedDomains);$application->custom_labels = base64_encode(implode("\n ", generateLabelsApplication($application)));$application->save();+return response()->json(['success' => true,'message' => 'Domains updated successfully',- 'application' => $application+ 'application' => $application,]);}@@ -174,16 +175,16 @@ class Domains extends Controllerreturn response()->json(['success' => false,'message' => 'Validation failed',- 'errors' => $validator->errors()+ 'errors' => $validator->errors(),], 422);}$application = Application::where('uuid', $request->uuid)->first();- if (!$application) {+ if (! $application) {return response()->json(['success' => false,- 'message' => 'Application not found'+ 'message' => 'Application not found',], 404);}@@ -193,10 +194,11 @@ class Domains extends Controller$application->fqdn = implode(',', $updatedDomains);$application->custom_labels = base64_encode(implode("\n ", generateLabelsApplication($application)));$application->save();+return response()->json(['success' => true,'message' => 'Domains updated successfully',- 'application' => $application+ 'application' => $application,]);}}diff --git a/app/Jobs/ApplicationPullRequestUpdateJob.php b/app/Jobs/ApplicationPullRequestUpdateJob.phpindex d400642dde..6120d1cba8 100755--- a/app/Jobs/ApplicationPullRequestUpdateJob.php+++ b/app/Jobs/ApplicationPullRequestUpdateJob.php@@ -25,8 +25,7 @@ class ApplicationPullRequestUpdateJob implements ShouldBeEncrypted, ShouldQueuepublic ApplicationPreview $preview,public ProcessStatus $status,public ?string $deployment_uuid = null- ) {- }+ ) {}public function handle(){diff --git a/app/Jobs/CheckLogDrainContainerJob.php b/app/Jobs/CheckLogDrainContainerJob.phpindex 312200f66c..16ef85192b 100644--- a/app/Jobs/CheckLogDrainContainerJob.php+++ b/app/Jobs/CheckLogDrainContainerJob.php@@ -19,9 +19,7 @@ class CheckLogDrainContainerJob implements ShouldBeEncrypted, ShouldQueue{use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;- public function __construct(public Server $server)- {- }+ public function __construct(public Server $server) {}public function middleware(): array{diff --git a/app/Jobs/CheckResaleLicenseJob.php b/app/Jobs/CheckResaleLicenseJob.phpindex 8f2039ef24..b55ae99676 100644--- a/app/Jobs/CheckResaleLicenseJob.php+++ b/app/Jobs/CheckResaleLicenseJob.php@@ -14,9 +14,7 @@ class CheckResaleLicenseJob implements ShouldBeEncrypted, ShouldQueue{use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;- public function __construct()- {- }+ public function __construct() {}public function handle(): void{diff --git a/app/Jobs/CleanupHelperContainersJob.php b/app/Jobs/CleanupHelperContainersJob.phpindex 418c7a0f40..7b064a4647 100644--- a/app/Jobs/CleanupHelperContainersJob.php+++ b/app/Jobs/CleanupHelperContainersJob.php@@ -15,9 +15,7 @@ class CleanupHelperContainersJob implements ShouldBeEncrypted, ShouldBeUnique, S{use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;- public function __construct(public Server $server)- {- }+ public function __construct(public Server $server) {}public function handle(): void{diff --git a/app/Jobs/CleanupInstanceStuffsJob.php b/app/Jobs/CleanupInstanceStuffsJob.phpindex b846ad2bc2..d9de3f6fe7 100644--- a/app/Jobs/CleanupInstanceStuffsJob.php+++ b/app/Jobs/CleanupInstanceStuffsJob.php@@ -16,10 +16,7 @@ class CleanupInstanceStuffsJob implements ShouldBeEncrypted, ShouldBeUnique, Sho{use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;- public function __construct()- {-- }+ public function __construct() {}// public function uniqueId(): string// {diff --git a/app/Jobs/ContainerStatusJob.php b/app/Jobs/ContainerStatusJob.phpindex c50d17d4c7..e919855d55 100644--- a/app/Jobs/ContainerStatusJob.php+++ b/app/Jobs/ContainerStatusJob.php@@ -23,9 +23,7 @@ class ContainerStatusJob implements ShouldBeEncrypted, ShouldQueuereturn isDev() ? 1 : 3;}- public function __construct(public Server $server)- {- }+ public function __construct(public Server $server) {}public function middleware(): array{diff --git a/app/Jobs/CoolifyTask.php b/app/Jobs/CoolifyTask.phpindex e5f4dfd5e3..5418daa223 100755--- a/app/Jobs/CoolifyTask.php+++ b/app/Jobs/CoolifyTask.php@@ -23,8 +23,7 @@ class CoolifyTask implements ShouldBeEncrypted, ShouldQueuepublic bool $ignore_errors = false,public $call_event_on_finish = null,public $call_event_data = null- ) {- }+ ) {}/*** Execute the job.diff --git a/app/Jobs/DatabaseBackupStatusJob.php b/app/Jobs/DatabaseBackupStatusJob.phpindex cf240e0d7a..d3b0e99cfb 100644--- a/app/Jobs/DatabaseBackupStatusJob.php+++ b/app/Jobs/DatabaseBackupStatusJob.php@@ -18,9 +18,7 @@ class DatabaseBackupStatusJob implements ShouldBeEncrypted, ShouldQueuepublic $tries = 1;- public function __construct()- {- }+ public function __construct() {}public function handle(){diff --git a/app/Jobs/DeleteResourceJob.php b/app/Jobs/DeleteResourceJob.phpindex 6d4720f6b6..8710fda885 100644--- a/app/Jobs/DeleteResourceJob.php+++ b/app/Jobs/DeleteResourceJob.php@@ -28,9 +28,7 @@ class DeleteResourceJob implements ShouldBeEncrypted, ShouldQueue{use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;- public function __construct(public Application|Service|StandalonePostgresql|StandaloneRedis|StandaloneMongodb|StandaloneMysql|StandaloneMariadb|StandaloneKeydb|StandaloneDragonfly|StandaloneClickhouse $resource, public bool $deleteConfigurations = false)- {- }+ public function __construct(public Application|Service|StandalonePostgresql|StandaloneRedis|StandaloneMongodb|StandaloneMysql|StandaloneMariadb|StandaloneKeydb|StandaloneDragonfly|StandaloneClickhouse $resource, public bool $deleteConfigurations = false) {}public function handle(){diff --git a/app/Jobs/DockerCleanupJob.php b/app/Jobs/DockerCleanupJob.phpindex 32c41e99ce..50728ba862 100644--- a/app/Jobs/DockerCleanupJob.php+++ b/app/Jobs/DockerCleanupJob.php@@ -22,9 +22,7 @@ class DockerCleanupJob implements ShouldBeEncrypted, ShouldQueuepublic ?int $usageBefore = null;- public function __construct(public Server $server)- {- }+ public function __construct(public Server $server) {}public function handle(): void{diff --git a/app/Jobs/GithubAppPermissionJob.php b/app/Jobs/GithubAppPermissionJob.phpindex bab8f3a253..3188d35d6e 100644--- a/app/Jobs/GithubAppPermissionJob.php+++ b/app/Jobs/GithubAppPermissionJob.php@@ -23,9 +23,7 @@ class GithubAppPermissionJob implements ShouldBeEncrypted, ShouldQueuereturn isDev() ? 1 : 3;}- public function __construct(public GithubApp $github_app)- {- }+ public function __construct(public GithubApp $github_app) {}public function middleware(): array{diff --git a/app/Jobs/InstanceAutoUpdateJob.php b/app/Jobs/InstanceAutoUpdateJob.phpindex bce60bbc81..1bbfcf8cbb 100644--- a/app/Jobs/InstanceAutoUpdateJob.php+++ b/app/Jobs/InstanceAutoUpdateJob.php@@ -19,9 +19,7 @@ class InstanceAutoUpdateJob implements ShouldBeEncrypted, ShouldBeUnique, Shouldpublic $tries = 1;- public function __construct()- {- }+ public function __construct() {}public function handle(): void{diff --git a/app/Jobs/PullCoolifyImageJob.php b/app/Jobs/PullCoolifyImageJob.phpindex ccaa785dc8..2bcbfc4df5 100644--- a/app/Jobs/PullCoolifyImageJob.php+++ b/app/Jobs/PullCoolifyImageJob.php@@ -19,9 +19,7 @@ class PullCoolifyImageJob implements ShouldBeEncrypted, ShouldQueuepublic $timeout = 1000;- public function __construct()- {- }+ public function __construct() {}public function handle(): void{diff --git a/app/Jobs/PullHelperImageJob.php b/app/Jobs/PullHelperImageJob.phpindex d3bda2ea1e..30a1b8026f 100644--- a/app/Jobs/PullHelperImageJob.php+++ b/app/Jobs/PullHelperImageJob.php@@ -27,9 +27,7 @@ class PullHelperImageJob implements ShouldBeEncrypted, ShouldQueuereturn $this->server->uuid;}- public function __construct(public Server $server)- {- }+ public function __construct(public Server $server) {}public function handle(): void{diff --git a/app/Jobs/PullSentinelImageJob.php b/app/Jobs/PullSentinelImageJob.phpindex 1dd4b1dd34..30b36d99f9 100644--- a/app/Jobs/PullSentinelImageJob.php+++ b/app/Jobs/PullSentinelImageJob.php@@ -28,9 +28,7 @@ class PullSentinelImageJob implements ShouldBeEncrypted, ShouldQueuereturn $this->server->uuid;}- public function __construct(public Server $server)- {- }+ public function __construct(public Server $server) {}public function handle(): void{diff --git a/app/Jobs/PullTemplatesFromCDN.php b/app/Jobs/PullTemplatesFromCDN.phpindex 948060033a..396ff29f41 100644--- a/app/Jobs/PullTemplatesFromCDN.php+++ b/app/Jobs/PullTemplatesFromCDN.php@@ -17,9 +17,7 @@ class PullTemplatesFromCDN implements ShouldBeEncrypted, ShouldQueuepublic $timeout = 10;- public function __construct()- {- }+ public function __construct() {}public function handle(): void{diff --git a/app/Jobs/PullVersionsFromCDN.php b/app/Jobs/PullVersionsFromCDN.phpindex 1ad4989ded..79ebad7a81 100644--- a/app/Jobs/PullVersionsFromCDN.php+++ b/app/Jobs/PullVersionsFromCDN.php@@ -17,9 +17,7 @@ class PullVersionsFromCDN implements ShouldBeEncrypted, ShouldQueuepublic $timeout = 10;- public function __construct()- {- }+ public function __construct() {}public function handle(): void{diff --git a/app/Jobs/SendConfirmationForWaitlistJob.php b/app/Jobs/SendConfirmationForWaitlistJob.phpindex 4d5618df0d..73e8658eee 100755--- a/app/Jobs/SendConfirmationForWaitlistJob.php+++ b/app/Jobs/SendConfirmationForWaitlistJob.php@@ -14,9 +14,7 @@ class SendConfirmationForWaitlistJob implements ShouldBeEncrypted, ShouldQueue{use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;- public function __construct(public string $email, public string $uuid)- {- }+ public function __construct(public string $email, public string $uuid) {}public function handle(){diff --git a/app/Jobs/SendMessageToDiscordJob.php b/app/Jobs/SendMessageToDiscordJob.phpindex 90f2e0b306..f38cf823c7 100644--- a/app/Jobs/SendMessageToDiscordJob.php+++ b/app/Jobs/SendMessageToDiscordJob.php@@ -31,8 +31,7 @@ class SendMessageToDiscordJob implements ShouldBeEncrypted, ShouldQueuepublic function __construct(public string $text,public string $webhookUrl- ) {- }+ ) {}/*** Execute the job.diff --git a/app/Jobs/SendMessageToTelegramJob.php b/app/Jobs/SendMessageToTelegramJob.phpindex b81bbc50bb..bf52b782f6 100644--- a/app/Jobs/SendMessageToTelegramJob.php+++ b/app/Jobs/SendMessageToTelegramJob.php@@ -33,8 +33,7 @@ class SendMessageToTelegramJob implements ShouldBeEncrypted, ShouldQueuepublic string $token,public string $chatId,public ?string $topicId = null,- ) {- }+ ) {}/*** Execute the job.diff --git a/app/Jobs/ServerFilesFromServerJob.php b/app/Jobs/ServerFilesFromServerJob.phpindex 2476c12ddc..769dfc0045 100644--- a/app/Jobs/ServerFilesFromServerJob.php+++ b/app/Jobs/ServerFilesFromServerJob.php@@ -16,9 +16,7 @@ class ServerFilesFromServerJob implements ShouldBeEncrypted, ShouldQueue{use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;- public function __construct(public ServiceApplication|ServiceDatabase|Application $resource)- {- }+ public function __construct(public ServiceApplication|ServiceDatabase|Application $resource) {}public function handle(){diff --git a/app/Jobs/ServerLimitCheckJob.php b/app/Jobs/ServerLimitCheckJob.phpindex 3eaf88ba7a..24292025bd 100644--- a/app/Jobs/ServerLimitCheckJob.php+++ b/app/Jobs/ServerLimitCheckJob.php@@ -24,9 +24,7 @@ class ServerLimitCheckJob implements ShouldBeEncrypted, ShouldQueuereturn isDev() ? 1 : 3;}- public function __construct(public Team $team)- {- }+ public function __construct(public Team $team) {}public function middleware(): array{diff --git a/app/Jobs/ServerStatusJob.php b/app/Jobs/ServerStatusJob.phpindex aaf8f57840..c30dadff36 100644--- a/app/Jobs/ServerStatusJob.php+++ b/app/Jobs/ServerStatusJob.php@@ -25,9 +25,7 @@ class ServerStatusJob implements ShouldBeEncrypted, ShouldQueuereturn isDev() ? 1 : 3;}- public function __construct(public Server $server)- {- }+ public function __construct(public Server $server) {}public function middleware(): array{diff --git a/app/Jobs/ServerStorageSaveJob.php b/app/Jobs/ServerStorageSaveJob.phpindex c94a3edc58..526cd5375d 100644--- a/app/Jobs/ServerStorageSaveJob.php+++ b/app/Jobs/ServerStorageSaveJob.php@@ -14,9 +14,7 @@ class ServerStorageSaveJob implements ShouldBeEncrypted, ShouldQueue{use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;- public function __construct(public LocalFileVolume $localFileVolume)- {- }+ public function __construct(public LocalFileVolume $localFileVolume) {}public function handle(){diff --git a/app/Jobs/SubscriptionInvoiceFailedJob.php b/app/Jobs/SubscriptionInvoiceFailedJob.phpindex e4cd219c8e..64a75671fe 100755--- a/app/Jobs/SubscriptionInvoiceFailedJob.php+++ b/app/Jobs/SubscriptionInvoiceFailedJob.php@@ -15,9 +15,7 @@ class SubscriptionInvoiceFailedJob implements ShouldBeEncrypted, ShouldQueue{use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;- public function __construct(protected Team $team)- {- }+ public function __construct(protected Team $team) {}public function handle(){diff --git a/app/Jobs/SubscriptionTrialEndedJob.php b/app/Jobs/SubscriptionTrialEndedJob.phpindex ee260d8d98..dd2250dd7f 100755--- a/app/Jobs/SubscriptionTrialEndedJob.php+++ b/app/Jobs/SubscriptionTrialEndedJob.php@@ -17,8 +17,7 @@ class SubscriptionTrialEndedJob implements ShouldBeEncrypted, ShouldQueuepublic function __construct(public Team $team- ) {- }+ ) {}public function handle(): void{diff --git a/app/Jobs/SubscriptionTrialEndsSoonJob.php b/app/Jobs/SubscriptionTrialEndsSoonJob.phpindex fba6681089..80e232a3ec 100755--- a/app/Jobs/SubscriptionTrialEndsSoonJob.php+++ b/app/Jobs/SubscriptionTrialEndsSoonJob.php@@ -17,8 +17,7 @@ class SubscriptionTrialEndsSoonJob implements ShouldBeEncrypted, ShouldQueuepublic function __construct(public Team $team- ) {- }+ ) {}public function handle(): void{diff --git a/app/Listeners/MaintenanceModeDisabledNotification.php b/app/Listeners/MaintenanceModeDisabledNotification.phpindex 9f676ca993..ded53cceee 100644--- a/app/Listeners/MaintenanceModeDisabledNotification.php+++ b/app/Listeners/MaintenanceModeDisabledNotification.php@@ -9,9 +9,7 @@ use Symfony\Component\HttpFoundation\Request as SymfonyRequest;class MaintenanceModeDisabledNotification{- public function __construct()- {- }+ public function __construct() {}public function handle(EventsMaintenanceModeDisabled $event): void{diff --git a/app/Listeners/ProxyStartedNotification.php b/app/Listeners/ProxyStartedNotification.phpindex 64271cc52a..d0541b162e 100644--- a/app/Listeners/ProxyStartedNotification.php+++ b/app/Listeners/ProxyStartedNotification.php@@ -9,9 +9,7 @@ class ProxyStartedNotification{public Server $server;- public function __construct()- {- }+ public function __construct() {}public function handle(ProxyStarted $event): void{diff --git a/app/Models/Application.php b/app/Models/Application.phpindex 13925fb360..2a34caf7e4 100644--- a/app/Models/Application.php+++ b/app/Models/Application.php@@ -66,7 +66,7 @@ class Application extends BaseModel$workdir = $this->workdir();if (str($workdir)->endsWith($this->uuid)) {ray('Deleting workdir');- instant_remote_process(['rm -rf ' . $this->workdir()], $server, false);+ instant_remote_process(['rm -rf '.$this->workdir()], $server, false);}}@@ -165,7 +165,7 @@ class Application extends BaseModelpublic function publishDirectory(): Attribute{return Attribute::make(- set: fn ($value) => $value ? '/' . ltrim($value, '/') : null,+ set: fn ($value) => $value ? '/'.ltrim($value, '/') : null,);}@@ -173,7 +173,7 @@ class Application extends BaseModel{return Attribute::make(get: function () {- if (!is_null($this->source?->html_url) && !is_null($this->git_repository) && !is_null($this->git_branch)) {+ if (! is_null($this->source?->html_url) && ! is_null($this->git_repository) && ! is_null($this->git_branch)) {return "{$this->source->html_url}/{$this->git_repository}/tree/{$this->git_branch}";}// Convert the SSH URL to HTTPS URL@@ -192,7 +192,7 @@ class Application extends BaseModel{return Attribute::make(get: function () {- if (!is_null($this->source?->html_url) && !is_null($this->git_repository) && !is_null($this->git_branch)) {+ if (! is_null($this->source?->html_url) && ! is_null($this->git_repository) && ! is_null($this->git_branch)) {return "{$this->source->html_url}/{$this->git_repository}/settings/hooks";}// Convert the SSH URL to HTTPS URL@@ -211,7 +211,7 @@ class Application extends BaseModel{return Attribute::make(get: function () {- if (!is_null($this->source?->html_url) && !is_null($this->git_repository) && !is_null($this->git_branch)) {+ if (! is_null($this->source?->html_url) && ! is_null($this->git_repository) && ! is_null($this->git_branch)) {return "{$this->source->html_url}/{$this->git_repository}/commits/{$this->git_branch}";}// Convert the SSH URL to HTTPS URL@@ -228,7 +228,7 @@ class Application extends BaseModelpublic function gitCommitLink($link): string{- if (!is_null($this->source?->html_url) && !is_null($this->git_repository) && !is_null($this->git_branch)) {+ if (! is_null($this->source?->html_url) && ! is_null($this->git_repository) && ! is_null($this->git_branch)) {if (str($this->source->html_url)->contains('bitbucket')) {return "{$this->source->html_url}/{$this->git_repository}/commits/{$link}";}@@ -244,7 +244,7 @@ class Application extends BaseModel$git_repository = str_replace('.git', '', $this->git_repository);$url = Url::fromString($git_repository);$url = $url->withUserInfo('');- $url = $url->withPath($url->getPath() . '/commits/' . $link);+ $url = $url->withPath($url->getPath().'/commits/'.$link);return $url->__toString();}@@ -306,7 +306,7 @@ class Application extends BaseModelpublic function baseDirectory(): Attribute{return Attribute::make(- set: fn ($value) => '/' . ltrim($value, '/'),+ set: fn ($value) => '/'.ltrim($value, '/'),);}@@ -622,7 +622,7 @@ class Application extends BaseModelpublic function workdir(){- return application_configuration_dir() . "/{$this->uuid}";+ return application_configuration_dir()."/{$this->uuid}";}public function isLogDrainEnabled()@@ -632,7 +632,7 @@ class Application extends BaseModelpublic function isConfigurationChanged(bool $save = false){- $newConfigHash = $this->fqdn . $this->git_repository . $this->git_branch . $this->git_commit_sha . $this->build_pack . $this->static_image . $this->install_command . $this->build_command . $this->start_command . $this->ports_exposes . $this->ports_mappings . $this->base_directory . $this->publish_directory . $this->dockerfile . $this->dockerfile_location . $this->custom_labels . $this->custom_docker_run_options . $this->dockerfile_target_build . $this->redirect;+ $newConfigHash = $this->fqdn.$this->git_repository.$this->git_branch.$this->git_commit_sha.$this->build_pack.$this->static_image.$this->install_command.$this->build_command.$this->start_command.$this->ports_exposes.$this->ports_mappings.$this->base_directory.$this->publish_directory.$this->dockerfile.$this->dockerfile_location.$this->custom_labels.$this->custom_docker_run_options.$this->dockerfile_target_build.$this->redirect;if ($this->pull_request_id === 0 || $this->pull_request_id === null) {$newConfigHash .= json_encode($this->environment_variables()->get('value')->sort());} else {@@ -727,7 +727,7 @@ class Application extends BaseModelif ($this->source->is_public) {$fullRepoUrl = "{$this->source->html_url}/{$customRepository}";$git_clone_command = "{$git_clone_command} {$this->source->html_url}/{$customRepository} {$baseDir}";- if (!$only_checkout) {+ if (! $only_checkout) {$git_clone_command = $this->setGitImportSettings($deployment_uuid, $git_clone_command, public: true);}if ($exec_in_docker) {@@ -744,7 +744,7 @@ class Application extends BaseModel$git_clone_command = "{$git_clone_command} $source_html_url_scheme://x-access-token:$github_access_token@$source_html_url_host/{$customRepository} {$baseDir}";$fullRepoUrl = "$source_html_url_scheme://x-access-token:$github_access_token@$source_html_url_host/{$customRepository}";}- if (!$only_checkout) {+ if (! $only_checkout) {$git_clone_command = $this->setGitImportSettings($deployment_uuid, $git_clone_command, public: false);}if ($exec_in_docker) {@@ -805,7 +805,7 @@ class Application extends BaseModel} else {$commands->push("echo 'Checking out $branch'");}- $git_clone_command = "{$git_clone_command} && cd {$baseDir} && GIT_SSH_COMMAND=\"ssh -o ConnectTimeout=30 -p {$customPort} -o Port={$customPort} -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i /root/.ssh/id_rsa\" git fetch origin $branch && " . $this->buildGitCheckoutCommand($pr_branch_name);+ $git_clone_command = "{$git_clone_command} && cd {$baseDir} && GIT_SSH_COMMAND=\"ssh -o ConnectTimeout=30 -p {$customPort} -o Port={$customPort} -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i /root/.ssh/id_rsa\" git fetch origin $branch && ".$this->buildGitCheckoutCommand($pr_branch_name);} elseif ($git_type === 'github') {$branch = "pull/{$pull_request_id}/head:$pr_branch_name";if ($exec_in_docker) {@@ -813,14 +813,14 @@ class Application extends BaseModel} else {$commands->push("echo 'Checking out $branch'");}- $git_clone_command = "{$git_clone_command} && cd {$baseDir} && GIT_SSH_COMMAND=\"ssh -o ConnectTimeout=30 -p {$customPort} -o Port={$customPort} -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i /root/.ssh/id_rsa\" git fetch origin $branch && " . $this->buildGitCheckoutCommand($pr_branch_name);+ $git_clone_command = "{$git_clone_command} && cd {$baseDir} && GIT_SSH_COMMAND=\"ssh -o ConnectTimeout=30 -p {$customPort} -o Port={$customPort} -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i /root/.ssh/id_rsa\" git fetch origin $branch && ".$this->buildGitCheckoutCommand($pr_branch_name);} elseif ($git_type === 'bitbucket') {if ($exec_in_docker) {$commands->push(executeInDocker($deployment_uuid, "echo 'Checking out $branch'"));} else {$commands->push("echo 'Checking out $branch'");}- $git_clone_command = "{$git_clone_command} && cd {$baseDir} && GIT_SSH_COMMAND=\"ssh -o ConnectTimeout=30 -p {$customPort} -o Port={$customPort} -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i /root/.ssh/id_rsa\" " . $this->buildGitCheckoutCommand($commit);+ $git_clone_command = "{$git_clone_command} && cd {$baseDir} && GIT_SSH_COMMAND=\"ssh -o ConnectTimeout=30 -p {$customPort} -o Port={$customPort} -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i /root/.ssh/id_rsa\" ".$this->buildGitCheckoutCommand($commit);}}@@ -849,7 +849,7 @@ class Application extends BaseModel} else {$commands->push("echo 'Checking out $branch'");}- $git_clone_command = "{$git_clone_command} && cd {$baseDir} && GIT_SSH_COMMAND=\"ssh -o ConnectTimeout=30 -p {$customPort} -o Port={$customPort} -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i /root/.ssh/id_rsa\" git fetch origin $branch && " . $this->buildGitCheckoutCommand($pr_branch_name);+ $git_clone_command = "{$git_clone_command} && cd {$baseDir} && GIT_SSH_COMMAND=\"ssh -o ConnectTimeout=30 -p {$customPort} -o Port={$customPort} -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i /root/.ssh/id_rsa\" git fetch origin $branch && ".$this->buildGitCheckoutCommand($pr_branch_name);} elseif ($git_type === 'github') {$branch = "pull/{$pull_request_id}/head:$pr_branch_name";if ($exec_in_docker) {@@ -857,14 +857,14 @@ class Application extends BaseModel} else {$commands->push("echo 'Checking out $branch'");}- $git_clone_command = "{$git_clone_command} && cd {$baseDir} && GIT_SSH_COMMAND=\"ssh -o ConnectTimeout=30 -p {$customPort} -o Port={$customPort} -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i /root/.ssh/id_rsa\" git fetch origin $branch && " . $this->buildGitCheckoutCommand($pr_branch_name);+ $git_clone_command = "{$git_clone_command} && cd {$baseDir} && GIT_SSH_COMMAND=\"ssh -o ConnectTimeout=30 -p {$customPort} -o Port={$customPort} -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i /root/.ssh/id_rsa\" git fetch origin $branch && ".$this->buildGitCheckoutCommand($pr_branch_name);} elseif ($git_type === 'bitbucket') {if ($exec_in_docker) {$commands->push(executeInDocker($deployment_uuid, "echo 'Checking out $branch'"));} else {$commands->push("echo 'Checking out $branch'");}- $git_clone_command = "{$git_clone_command} && cd {$baseDir} && GIT_SSH_COMMAND=\"ssh -o ConnectTimeout=30 -p {$customPort} -o Port={$customPort} -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i /root/.ssh/id_rsa\" " . $this->buildGitCheckoutCommand($commit);+ $git_clone_command = "{$git_clone_command} && cd {$baseDir} && GIT_SSH_COMMAND=\"ssh -o ConnectTimeout=30 -p {$customPort} -o Port={$customPort} -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i /root/.ssh/id_rsa\" ".$this->buildGitCheckoutCommand($commit);}}@@ -916,20 +916,20 @@ class Application extends BaseModel}if ($source->startsWith('.')) {$source = $source->after('.');- $source = $workdir . $source;+ $source = $workdir.$source;}$commands->push("mkdir -p $source > /dev/null 2>&1 || true");}}}$labels = collect(data_get($service, 'labels', []));- if (!$labels->contains('coolify.managed')) {+ if (! $labels->contains('coolify.managed')) {$labels->push('coolify.managed=true');}- if (!$labels->contains('coolify.applicationId')) {- $labels->push('coolify.applicationId=' . $this->id);+ if (! $labels->contains('coolify.applicationId')) {+ $labels->push('coolify.applicationId='.$this->id);}- if (!$labels->contains('coolify.type')) {+ if (! $labels->contains('coolify.type')) {$labels->push('coolify.type=application');}data_set($service, 'labels', $labels->toArray());@@ -977,7 +977,7 @@ class Application extends BaseModel"cat .$workdir$composeFile",]);$composeFileContent = instant_remote_process($commands, $this->destination->server, false);- if (!$composeFileContent) {+ if (! $composeFileContent) {$this->docker_compose_location = $initialDockerComposeLocation;$this->save();$commands = collect([@@ -1001,7 +1001,7 @@ class Application extends BaseModel$jsonNames = $json->keys()->toArray();$diff = array_diff($jsonNames, $names);$json = $json->filter(function ($value, $key) use ($diff) {- return !in_array($key, $diff);+ return ! in_array($key, $diff);});if ($json) {$this->docker_compose_domains = json_encode($json);@@ -1021,7 +1021,7 @@ class Application extends BaseModelpublic function parseContainerLabels(?ApplicationPreview $preview = null){$customLabels = data_get($this, 'custom_labels');- if (!$customLabels) {+ if (! $customLabels) {return;}if (base64_encode(base64_decode($customLabels, true)) !== $customLabels) {@@ -1104,10 +1104,10 @@ class Application extends BaseModelcontinue;}if (isset($healthcheckCommand) && str_contains($trimmedLine, '\\')) {- $healthcheckCommand .= ' ' . trim($trimmedLine, '\\ ');+ $healthcheckCommand .= ' '.trim($trimmedLine, '\\ ');}- if (isset($healthcheckCommand) && !str_contains($trimmedLine, '\\') && !empty($healthcheckCommand)) {- $healthcheckCommand .= ' ' . $trimmedLine;+ if (isset($healthcheckCommand) && ! str_contains($trimmedLine, '\\') && ! empty($healthcheckCommand)) {+ $healthcheckCommand .= ' '.$trimmedLine;break;}}diff --git a/app/Models/Kubernetes.php b/app/Models/Kubernetes.phpindex 2ad7a21103..174cb5bc86 100644--- a/app/Models/Kubernetes.php+++ b/app/Models/Kubernetes.php@@ -2,6 +2,4 @@namespace App\Models;-class Kubernetes extends BaseModel-{-}+class Kubernetes extends BaseModel {}diff --git a/app/Notifications/Container/ContainerRestarted.php b/app/Notifications/Container/ContainerRestarted.phpindex a55f16a83f..86c1e6e690 100644--- a/app/Notifications/Container/ContainerRestarted.php+++ b/app/Notifications/Container/ContainerRestarted.php@@ -14,9 +14,7 @@ class ContainerRestarted extends Notification implements ShouldQueuepublic $tries = 1;- public function __construct(public string $name, public Server $server, public ?string $url = null)- {- }+ public function __construct(public string $name, public Server $server, public ?string $url = null) {}public function via(object $notifiable): array{diff --git a/app/Notifications/Container/ContainerStopped.php b/app/Notifications/Container/ContainerStopped.phpindex d9dc57b981..75b4872cb3 100644--- a/app/Notifications/Container/ContainerStopped.php+++ b/app/Notifications/Container/ContainerStopped.php@@ -14,9 +14,7 @@ class ContainerStopped extends Notification implements ShouldQueuepublic $tries = 1;- public function __construct(public string $name, public Server $server, public ?string $url = null)- {- }+ public function __construct(public string $name, public Server $server, public ?string $url = null) {}public function via(object $notifiable): array{diff --git a/app/Notifications/Database/DailyBackup.php b/app/Notifications/Database/DailyBackup.phpindex c74676eb74..90abee8a69 100644--- a/app/Notifications/Database/DailyBackup.php+++ b/app/Notifications/Database/DailyBackup.php@@ -16,9 +16,7 @@ class DailyBackup extends Notification implements ShouldQueuepublic $tries = 1;- public function __construct(public $databases)- {- }+ public function __construct(public $databases) {}public function via(object $notifiable): array{diff --git a/app/Notifications/Internal/GeneralNotification.php b/app/Notifications/Internal/GeneralNotification.phpindex 6acd770f64..1d4d648c86 100644--- a/app/Notifications/Internal/GeneralNotification.php+++ b/app/Notifications/Internal/GeneralNotification.php@@ -14,9 +14,7 @@ class GeneralNotification extends Notification implements ShouldQueuepublic $tries = 1;- public function __construct(public string $message)- {- }+ public function __construct(public string $message) {}public function via(object $notifiable): array{diff --git a/app/Notifications/Server/DockerCleanup.php b/app/Notifications/Server/DockerCleanup.phpindex 0e445f035a..f8195ec1d5 100644--- a/app/Notifications/Server/DockerCleanup.php+++ b/app/Notifications/Server/DockerCleanup.php@@ -15,9 +15,7 @@ class DockerCleanup extends Notification implements ShouldQueuepublic $tries = 1;- public function __construct(public Server $server, public string $message)- {- }+ public function __construct(public Server $server, public string $message) {}public function via(object $notifiable): array{diff --git a/app/Notifications/Server/ForceDisabled.php b/app/Notifications/Server/ForceDisabled.phpindex 960a7c79f7..9a76558e24 100644--- a/app/Notifications/Server/ForceDisabled.php+++ b/app/Notifications/Server/ForceDisabled.php@@ -17,9 +17,7 @@ class ForceDisabled extends Notification implements ShouldQueuepublic $tries = 1;- public function __construct(public Server $server)- {- }+ public function __construct(public Server $server) {}public function via(object $notifiable): array{diff --git a/app/Notifications/Server/ForceEnabled.php b/app/Notifications/Server/ForceEnabled.phpindex 6a4b5d74bd..a43e303761 100644--- a/app/Notifications/Server/ForceEnabled.php+++ b/app/Notifications/Server/ForceEnabled.php@@ -17,9 +17,7 @@ class ForceEnabled extends Notification implements ShouldQueuepublic $tries = 1;- public function __construct(public Server $server)- {- }+ public function __construct(public Server $server) {}public function via(object $notifiable): array{diff --git a/app/Notifications/Server/HighDiskUsage.php b/app/Notifications/Server/HighDiskUsage.phpindex 5f63ef8f1a..a6e248170d 100644--- a/app/Notifications/Server/HighDiskUsage.php+++ b/app/Notifications/Server/HighDiskUsage.php@@ -17,9 +17,7 @@ class HighDiskUsage extends Notification implements ShouldQueuepublic $tries = 1;- public function __construct(public Server $server, public int $disk_usage, public int $cleanup_after_percentage)- {- }+ public function __construct(public Server $server, public int $disk_usage, public int $cleanup_after_percentage) {}public function via(object $notifiable): array{diff --git a/app/Notifications/Server/Unreachable.php b/app/Notifications/Server/Unreachable.phpindex 2dcfe28b85..ebbd6af778 100644--- a/app/Notifications/Server/Unreachable.php+++ b/app/Notifications/Server/Unreachable.php@@ -17,10 +17,7 @@ class Unreachable extends Notification implements ShouldQueuepublic $tries = 1;- public function __construct(public Server $server)- {-- }+ public function __construct(public Server $server) {}public function via(object $notifiable): array{diff --git a/app/Notifications/Test.php b/app/Notifications/Test.phpindex 925859aba8..f873a95d35 100644--- a/app/Notifications/Test.php+++ b/app/Notifications/Test.php@@ -13,9 +13,7 @@ class Test extends Notification implements ShouldQueuepublic $tries = 5;- public function __construct(public ?string $emails = null)- {- }+ public function __construct(public ?string $emails = null) {}public function via(object $notifiable): array{diff --git a/app/Notifications/TransactionalEmails/InvitationLink.php b/app/Notifications/TransactionalEmails/InvitationLink.phpindex a251b47ea6..49d2ad4878 100644--- a/app/Notifications/TransactionalEmails/InvitationLink.php+++ b/app/Notifications/TransactionalEmails/InvitationLink.php@@ -22,9 +22,7 @@ class InvitationLink extends Notification implements ShouldQueuereturn [TransactionalEmailChannel::class];}- public function __construct(public User $user)- {- }+ public function __construct(public User $user) {}public function toMail(): MailMessage{diff --git a/app/Notifications/TransactionalEmails/Test.php b/app/Notifications/TransactionalEmails/Test.phpindex ed30c18833..a417e1ee57 100644--- a/app/Notifications/TransactionalEmails/Test.php+++ b/app/Notifications/TransactionalEmails/Test.php@@ -14,9 +14,7 @@ class Test extends Notification implements ShouldQueuepublic $tries = 5;- public function __construct(public string $emails)- {- }+ public function __construct(public string $emails) {}public function via(): array{diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.phpindex 1bce22c124..6822dec135 100644--- a/app/Providers/AppServiceProvider.php+++ b/app/Providers/AppServiceProvider.php@@ -9,9 +9,7 @@ use Laravel\Sanctum\Sanctum;class AppServiceProvider extends ServiceProvider{- public function register(): void- {- }+ public function register(): void {}public function boot(): void{diff --git a/app/View/Components/Forms/Input.php b/app/View/Components/Forms/Input.phpindex 36c07dae15..35448d5e5b 100644--- a/app/View/Components/Forms/Input.php+++ b/app/View/Components/Forms/Input.php@@ -22,8 +22,7 @@ class Input extends Componentpublic bool $allowToPeak = true,public bool $isMultiline = false,public string $defaultClass = 'input',- ) {- }+ ) {}public function render(): View|Closure|string{diff --git a/app/View/Components/ResourceView.php b/app/View/Components/ResourceView.phpindex 5a11b159dc..d1107465b9 100644--- a/app/View/Components/ResourceView.php+++ b/app/View/Components/ResourceView.php@@ -16,9 +16,7 @@ class ResourceView extends Componentpublic ?string $logo = null,public ?string $documentation = null,public bool $upgrade = false,- ) {-- }+ ) {}/*** Get the view / contents that represent the component.diff --git a/app/View/Components/Status/Index.php b/app/View/Components/Status/Index.phpindex f8436a1022..ada9eb6823 100644--- a/app/View/Components/Status/Index.php+++ b/app/View/Components/Status/Index.php@@ -14,8 +14,7 @@ class Index extends Componentpublic function __construct(public $resource = null,public bool $showRefreshButton = true,- ) {- }+ ) {}/*** Get the view / contents that represent the component.diff --git a/database/seeders/EnvironmentSeeder.php b/database/seeders/EnvironmentSeeder.phpindex 0e980f22b9..1c6d562a9f 100644--- a/database/seeders/EnvironmentSeeder.php+++ b/database/seeders/EnvironmentSeeder.php@@ -9,7 +9,5 @@ class EnvironmentSeeder extends Seeder/*** Run the database seeds.*/- public function run(): void- {- }+ public function run(): void {}}diff --git a/routes/api.php b/routes/api.phpindex c0b8487818..a2f8109cb2 100644--- a/routes/api.php+++ b/routes/api.php@@ -37,7 +37,6 @@ Route::group([Route::get('/servers', [Server::class, 'servers']);Route::get('/server/{uuid}', [Server::class, 'server_by_uuid']);-Route::get('/resources', [Resources::class, 'resources']);Route::get('/domains', [Domains::class, 'domains']);Route::put('/domains', [Domains::class, 'updateDomains']);