mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 12:13:41 +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
@@ -193,7 +193,7 @@ class GithubPrivateRepositoryDeployKey extends Component
|
||||
|
||||
return;
|
||||
}
|
||||
if (Str::of($this->repository_url)->startsWith('http')) {
|
||||
if (str($this->repository_url)->startsWith('http')) {
|
||||
$this->git_host = $this->repository_url_parsed->getHost();
|
||||
$this->git_repository = $this->repository_url_parsed->getSegment(1).'/'.$this->repository_url_parsed->getSegment(2);
|
||||
$this->git_repository = Str::finish("git@$this->git_host:$this->git_repository", '.git');
|
||||
|
||||
Reference in new issue
Block a user