src/Process/Installer.php
public function getRepoUrl()
    {
        switch ($this->type) {
            case 'github':
                return "git@github.com:{$this->name}.git";

            case 'github-https':
                return "https://github.com/{$this->name}.git";

            case 'gitlab':
                return "git@gitlab.com:{$this->name}.git";
                break;

            case 'bitbucket':
                return "git@bitbucket.org:{$this->name}.git";

            default:

                // Check of type 'scheme://host/path'
                if (filter_var($this->type, FILTER_VALIDATE_URL)) {
                    return $this->type;
                }

                // Check of type 'user@host'
                if (filter_var($this->type, FILTER_VALIDATE_EMAIL)) {
                    return "{$this->type}:{$this->name}.git";
                }

                return;
                break;
        }
    }
public function getRepoUrl()
    {
        switch ($this->type) {
            case 'github':
                return "git@github.com:{$this->name}.git";

            case 'github-https':
                return "https://github.com/{$this->name}.git";

            case 'gitlab':
                return "git@gitlab.com:{$this->name}.git";
                break;

            case 'bitbucket':
                return "git@bitbucket.org:{$this->name}.git";

            default:

                // Check of type 'scheme://host/path'
                if (filter_var($this->type, FILTER_VALIDATE_URL)) {
                    return $this->type;
                }

                // Check of type 'user@host'
                if (filter_var($this->type, FILTER_VALIDATE_EMAIL)) {
                    return "{$this->type}:{$this->name}.git";
                }

                return;
                break;
        }
    }
public function getRepoUrl ( ) { switch ( $ this -> type ) { case 'github' : return "git@github.com:{$this->name}.git" ; case 'github-https' : return "https://github.com/{$this->name}.git" ; case 'gitlab' : return "git@gitlab.com:{$this->name}.git" ; break ; case 'bitbucket' : return "git@bitbucket.org:{$this->name}.git" ; default : // Check of type 'scheme://host/path' if ( filter_var ( $ this -> type , FILTER_VALIDATE_URL ) ) { return $ this -> type ; } // Check of type 'user@host' if ( filter_var ( $ this -> type , FILTER_VALIDATE_EMAIL ) ) { return "{$this->type}:{$this->name}.git" ; } return ; break ; } }
Get git repo url.

@return string|null
Get git repo url .