Code style fixes.

This commit is contained in:
Dmitry Khomutov 2018-03-05 19:32:49 +07:00
commit 50b117455e
No known key found for this signature in database
GPG key ID: EC19426474B37AAC
18 changed files with 133 additions and 130 deletions

View file

@ -161,7 +161,7 @@ class GithubBuild extends GitBuild
$project = $this->getProject();
if (!is_null($project)) {
$reference = $project->getReference();
$reference = $project->getReference();
$commitLink = '<a href="https://github.com/' . $reference . '/issues/$1">#$1</a>';
$rtn = preg_replace('/\#([0-9]+)/', $commitLink, $rtn);
$rtn = preg_replace('/\@([a-zA-Z0-9_]+)/', '<a href="https://github.com/$1">@$1</a>', $rtn);

View file

@ -49,9 +49,9 @@ class GitlabBuild extends GitBuild
$key = trim($this->getProject()->getSshPrivateKey());
if (!empty($key)) {
$user = $this->getProject()->getAccessInformation("user");
$user = $this->getProject()->getAccessInformation("user");
$domain = $this->getProject()->getAccessInformation("domain");
$port = $this->getProject()->getAccessInformation('port');
$port = $this->getProject()->getAccessInformation('port');
$url = $user . '@' . $domain . ':';