chore: Refactor shared.php helper functions
This commit is contained in:
		@@ -56,8 +56,6 @@ use Spatie\Url\Url;
 | 
				
			|||||||
use Symfony\Component\Yaml\Yaml;
 | 
					use Symfony\Component\Yaml\Yaml;
 | 
				
			||||||
use Visus\Cuid2\Cuid2;
 | 
					use Visus\Cuid2\Cuid2;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use function PHPUnit\Framework\isEmpty;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
function base_configuration_dir(): string
 | 
					function base_configuration_dir(): string
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    return '/data/coolify';
 | 
					    return '/data/coolify';
 | 
				
			||||||
@@ -2207,7 +2205,7 @@ function checkIfDomainIsAlreadyUsed(Collection|array $domains, ?string $teamId,
 | 
				
			|||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    foreach ($serviceApplications as $app) {
 | 
					    foreach ($serviceApplications as $app) {
 | 
				
			||||||
        if (isEmpty($app->fqdn)) {
 | 
					        if (str($app->fqdn)->isEmpty()) {
 | 
				
			||||||
            continue;
 | 
					            continue;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        $list_of_domains = collect(explode(',', $app->fqdn))->filter(fn ($fqdn) => $fqdn !== '');
 | 
					        $list_of_domains = collect(explode(',', $app->fqdn))->filter(fn ($fqdn) => $fqdn !== '');
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user