public function parseRemoteBranches(array $lines)
    {
        $branches = [];
        $delimiter = ' ';
        foreach ($lines as $line) {
            $line = trim($line);
            $line = preg_replace('/\s+/', ' ', $line);
            $parts = explode($delimiter, $line);
            if (count($parts) > 1) {
                $branches[$parts[0]] = ['local_relationship' => $parts[1]];
            }
        }

        return $branches;
    }
public function parseRemoteBranches(array $lines)
    {
        $branches = [];
        $delimiter = ' ';
        foreach ($lines as $line) {
            $line = trim($line);
            $line = preg_replace('/\s+/', ' ', $line);
            $parts = explode($delimiter, $line);
            if (count($parts) > 1) {
                $branches[$parts[0]] = ['local_relationship' => $parts[1]];
            }
        }

        return $branches;
    }
public function parseRemoteBranches ( array $ lines ) { $ branches = [ ] ; $ delimiter = ' ' ; foreach ( $ lines as $ line ) { $ line = trim ( $ line ) ; $ line = preg_replace ( '/\s+/' , ' ' , $ line ) ; $ parts = explode ( $ delimiter , $ line ) ; if ( count ( $ parts ) > 1 ) { $ branches [ $ parts [ 0 ] ] = [ 'local_relationship' => $ parts [ 1 ] ] ; } } return $ branches ; }
parse the details related to remote branch references

@param array $lines

@return array
parse the details related to remote branch references