public function getNames()
    {
        $branches = $this->execute();
        $branches = \explode("\n", $branches);
        $branches = \array_map(
            function ($branch) {
                return \ltrim($branch, '*');
            },
            $branches
        );
        $branches = \array_map('trim', $branches);
        $branches = \array_filter($branches);

        return $branches;
    }
public function getNames()
    {
        $branches = $this->execute();
        $branches = \explode("\n", $branches);
        $branches = \array_map(
            function ($branch) {
                return \ltrim($branch, '*');
            },
            $branches
        );
        $branches = \array_map('trim', $branches);
        $branches = \array_filter($branches);

        return $branches;
    }
public function getNames ( ) { $ branches = $ this -> execute ( ) ; $ branches = \ explode ( "\n" , $ branches ) ; $ branches = \ array_map ( function ( $ branch ) { return \ ltrim ( $ branch , '*' ) ; } , $ branches ) ; $ branches = \ array_map ( 'trim' , $ branches ) ; $ branches = \ array_filter ( $ branches ) ; return $ branches ; }
Retrieve the branch names.

@return string[]
Retrieve the branch names .