private function transformSshUrlIntoHttp($url)
    {
        $pattern = '#git@' . $this->getDomain() . ':' . self::REGEX_USER . '/' . self::REGEX_REPOSITORY . '.git$#';

        if (preg_match($pattern, $url, $matches)) {
            return sprintf(
                'https://%s/%s/%s',
                $this->getDomain(),
                $matches['user'],
                $matches['repository']
            );
        }

        return $url;
    }
private function transformSshUrlIntoHttp($url)
    {
        $pattern = '#git@' . $this->getDomain() . ':' . self::REGEX_USER . '/' . self::REGEX_REPOSITORY . '.git$#';

        if (preg_match($pattern, $url, $matches)) {
            return sprintf(
                'https://%s/%s/%s',
                $this->getDomain(),
                $matches['user'],
                $matches['repository']
            );
        }

        return $url;
    }
private function transformSshUrlIntoHttp ( $ url ) { $ pattern = '#git@' . $ this -> getDomain ( ) . ':' . self :: REGEX_USER . '/' . self :: REGEX_REPOSITORY . '.git$#' ; if ( preg_match ( $ pattern , $ url , $ matches ) ) { return sprintf ( 'https://%s/%s/%s' , $ this -> getDomain ( ) , $ matches [ 'user' ] , $ matches [ 'repository' ] ) ; } return $ url ; }
Transform an ssh git url into an http one.

@param string $url

@return string
Transform an ssh git url into an http one .