mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-17 12:33:06 +00:00
Refactor replaceVariables function in services.php to use a more concise syntax
This commit is contained in:
@@ -18,7 +18,7 @@ function collectRegex(string $name)
|
|||||||
}
|
}
|
||||||
function replaceVariables($variable)
|
function replaceVariables($variable)
|
||||||
{
|
{
|
||||||
return $variable->replaceFirst('$', '')->replaceFirst('{', '')->replaceLast('}', '');
|
return $variable->after('${')->before('}');
|
||||||
}
|
}
|
||||||
|
|
||||||
function getFilesystemVolumesFromServer(ServiceApplication|ServiceDatabase|Application $oneService, bool $isInit = false)
|
function getFilesystemVolumesFromServer(ServiceApplication|ServiceDatabase|Application $oneService, bool $isInit = false)
|
||||||
|
|||||||
Reference in New Issue
Block a user