Fix styling

This commit is contained in:
andrasbacsai 2024-06-11 10:38:24 +00:00 committed by github-actions[bot]
parent 8731d0416b
commit 5dc79159b4

View File

@ -1,9 +1,9 @@
<?php
use App\Enums\ApplicationDeploymentStatus;
use App\Models\ApplicationDeploymentQueue;
use App\Jobs\ServerFilesFromServerJob;
use App\Models\Application;
use App\Models\ApplicationDeploymentQueue;
use App\Models\ApplicationPreview;
use App\Models\EnvironmentVariable;
use App\Models\InstanceSettings;
@ -2271,7 +2271,8 @@ function get_public_ips()
}
}
function isAnyDeploymentInprogress() {
function isAnyDeploymentInprogress()
{
// Only use it in the deployment script
$count = ApplicationDeploymentQueue::whereIn('status', [ApplicationDeploymentStatus::IN_PROGRESS, ApplicationDeploymentStatus::QUEUED])->count();
if ($count > 0) {