mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 10:13:30 +00:00
refactor: Update code to use str() instead of Str::of() for string manipulation
This commit is contained in:
1 parent
1266810c4d
commit
2c92cc40e1
38 files changed
+101
-126
No files matched your search
@@ -85,7 +85,7 @@ function githubApi(GithubApp|GitlabApp|null $source, string $endpoint, string $m
|
||||
function get_installation_path(GithubApp $source)
|
||||
{
|
||||
$github = GithubApp::where('uuid', $source->uuid)->first();
|
||||
$name = Str::of(Str::kebab($github->name));
|
||||
$name = str(Str::kebab($github->name));
|
||||
$installation_path = $github->html_url === 'https://github.com' ? 'apps' : 'github-apps';
|
||||
|
||||
return "$github->html_url/$installation_path/$name/installations/new";
|
||||
@@ -93,7 +93,7 @@ function get_installation_path(GithubApp $source)
|
||||
function get_permissions_path(GithubApp $source)
|
||||
{
|
||||
$github = GithubApp::where('uuid', $source->uuid)->first();
|
||||
$name = Str::of(Str::kebab($github->name));
|
||||
$name = str(Str::kebab($github->name));
|
||||
|
||||
return "$github->html_url/settings/apps/$name/permissions";
|
||||
}
|
||||
Reference in new issue
Block a user