Code Duplication    Length = 11-11 lines in 2 locations

src/eXpansion/Framework/Core/Helpers/Version.php 2 locations

@@ 64-74 (lines=11) @@
61
     *
62
     * @return null|string
63
     */
64
    protected function getBranch()
65
    {
66
        if (is_null($this->expansionBranch)) {
67
            $process = new Process('git rev-parse --abbrev-ref HEAD');
68
            $process->run();
69
70
            $this->expansionBranch = trim($process->getOutput());
71
        }
72
73
        return $this->expansionBranch;
74
    }
75
76
    /**
77
     * Get current commit sha.
@@ 81-91 (lines=11) @@
78
     *
79
     * @return null|string
80
     */
81
    protected function getSha()
82
    {
83
        if (is_null($this->expansionSha)) {
84
            $process = new Process('git rev-parse HEAD');
85
            $process->run();
86
87
            $this->expansionSha = trim($process->getOutput());
88
        }
89
90
        return $this->expansionSha;
91
    }
92
}