public function getRemoteBranches()
    {
        $result = array();
        foreach ($this->getBranches() as $branch) {
            if ($branch->isRemote()) {
                $result[] = $branch;
            }
        }

        return $result;
    }
public function getRemoteBranches()
    {
        $result = array();
        foreach ($this->getBranches() as $branch) {
            if ($branch->isRemote()) {
                $result[] = $branch;
            }
        }

        return $result;
    }
public function getRemoteBranches ( ) { $ result = array ( ) ; foreach ( $ this -> getBranches ( ) as $ branch ) { if ( $ branch -> isRemote ( ) ) { $ result [ ] = $ branch ; } } return $ result ; }
Returns all remote branches.

@return array
Returns all remote branches .