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; }