Completed
Push — master ( 3c1663...329d8c )
by Jan
04:21
created
src/Services/GitVersionInfo.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,8 +49,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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];
Please login to merge, or discard this patch.