@@ -49,8 +49,8 @@ discard block |
||
49 | 49 | */ |
50 | 50 | public function getGitBranchName() |
51 | 51 | { |
52 | - if (file_exists($this->project_dir . '/.git/HEAD')) { |
|
53 | - $git = file($this->project_dir . '/.git/HEAD'); |
|
52 | + if (file_exists($this->project_dir.'/.git/HEAD')) { |
|
53 | + $git = file($this->project_dir.'/.git/HEAD'); |
|
54 | 54 | $head = explode('/', $git[0], 3); |
55 | 55 | return trim($head[2]); |
56 | 56 | } |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | */ |
66 | 66 | public function getGitCommitHash(int $length = 7) |
67 | 67 | { |
68 | - $filename = $this->project_dir . '/.git/refs/remotes/origin/' . $this->getGitBranchName(); |
|
68 | + $filename = $this->project_dir.'/.git/refs/remotes/origin/'.$this->getGitBranchName(); |
|
69 | 69 | if (file_exists($filename)) { |
70 | 70 | $head = file($filename); |
71 | 71 | $hash = $head[0]; |