src/Providers/None.php
public function getBranch()
    {
        if (!$this->isGitRepo()) {
            return '';
        }

        $branches = shell_exec('git branch');
        preg_match('/^\* (.+)$/m', $branches, $branch);

        return isset($branch) ? $branch[1] : '';
    }
public function getBranch()
    {
        if (!$this->isGitRepo()) {
            return '';
        }

        $branches = shell_exec('git branch');
        preg_match('/^\* (.+)$/m', $branches, $branch);

        return isset($branch) ? $branch[1] : '';
    }
{@inheritdoc}