Refactor replaceVariables function in services.php to use a more concise syntax
This commit is contained in:
parent
bbad029aa1
commit
9a9be466f7
@ -18,7 +18,7 @@ function collectRegex(string $name)
|
||||
}
|
||||
function replaceVariables($variable)
|
||||
{
|
||||
return $variable->replaceFirst('$', '')->replaceFirst('{', '')->replaceLast('}', '');
|
||||
return $variable->after('${')->before('}');
|
||||
}
|
||||
|
||||
function getFilesystemVolumesFromServer(ServiceApplication|ServiceDatabase|Application $oneService, bool $isInit = false)
|
||||
|
Loading…
Reference in New Issue
Block a user