From 995324d6b3d649a6a2fc315e41dcefc929bd1a7a Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 10 Jul 2024 11:09:29 +0200 Subject: [PATCH] chore: Refactor shared.php helper functions --- bootstrap/helpers/shared.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php index 7aab313c2..8b7422ad4 100644 --- a/bootstrap/helpers/shared.php +++ b/bootstrap/helpers/shared.php @@ -56,8 +56,6 @@ use Symfony\Component\Yaml\Yaml; use Visus\Cuid2\Cuid2; -use function PHPUnit\Framework\isEmpty; - function base_configuration_dir(): string { return '/data/coolify'; @@ -2207,7 +2205,7 @@ function checkIfDomainIsAlreadyUsed(Collection|array $domains, ?string $teamId, return true; } foreach ($serviceApplications as $app) { - if (isEmpty($app->fqdn)) { + if (str($app->fqdn)->isEmpty()) { continue; } $list_of_domains = collect(explode(',', $app->fqdn))->filter(fn ($fqdn) => $fqdn !== '');