chore: prepare for PR

This commit is contained in:
Andras Bacsai committed 2026-02-25 11:18:46 +01:00
1 parent cb759b2846
commit 1759a1631c
7 files changed
+105 -129

No files matched your search

+4
View File
@@ -191,6 +191,10 @@ function clone_application(Application $source, $destination, array $overrides =
$uuid = $overrides['uuid'] ?? (string) new Cuid2;
$server = $destination->server;
if ($server->team_id !== currentTeam()->id) {
throw new \RuntimeException('Destination does not belong to the current team.');
}
// Prepare name and URL
$name = $overrides['name'] ?? 'clone-of-'.str($source->name)->limit(20).'-'.$uuid;
$applicationSettings = $source->settings;