src/main/php/CommandLine/Library/Environment.php
private function getCountOfContainingBranches(string $targetCommit) : int
    {
        $numberOfContainingBranches = substr_count(
            $this->processRunner->runAsProcess(
                'git',
                'branch',
                '-a',
                '--contains',
                $targetCommit
            ),
            PHP_EOL
        );

        return $numberOfContainingBranches;
    }
private function getCountOfContainingBranches(string $targetCommit) : int
    {
        $numberOfContainingBranches = substr_count(
            $this->processRunner->runAsProcess(
                'git',
                'branch',
                '-a',
                '--contains',
                $targetCommit
            ),
            PHP_EOL
        );

        return $numberOfContainingBranches;
    }
private function getCountOfContainingBranches ( string $ targetCommit ) : int { $ numberOfContainingBranches = substr_count ( $ this -> processRunner -> runAsProcess ( 'git' , 'branch' , '-a' , '--contains' , $ targetCommit ) , PHP_EOL ) ; return $ numberOfContainingBranches ; }
Calls git to retriev the count of branches this commit is part of.

@param string $targetCommit

@return int
Calls git to retriev the count of branches this commit is part of .