GitWrapper\GitWorkingCopy::getRemotes PHP Method

getRemotes() public method

Returns all existing remotes.
public getRemotes ( ) : array
return array An associative array, keyed by remote name, containing an associative array with the following keys: - fetch: the fetch URL. - push: the push URL.
    public function getRemotes()
    {
        $this->clearOutput();
        $remotes = array();
        foreach (explode("\n", rtrim($this->remote()->getOutput())) as $remote) {
            $remotes[$remote]['fetch'] = $this->getRemoteUrl($remote);
            $remotes[$remote]['push'] = $this->getRemoteUrl($remote, 'push');
        }
        return $remotes;
    }