public function getRemotes(bool $queryRemotes = true)
    {
        $remoteNames = $this->caller
            ->execute(RemoteCommand::getInstance($this)->show(null, $queryRemotes))
            ->getOutputLines(true);

        $remotes = [];
        foreach ($remoteNames as $remoteName) {
            $remotes[] = $this->getRemote($remoteName, $queryRemotes);
        }

        return $remotes;
    }
public function getRemotes(bool $queryRemotes = true)
    {
        $remoteNames = $this->caller
            ->execute(RemoteCommand::getInstance($this)->show(null, $queryRemotes))
            ->getOutputLines(true);

        $remotes = [];
        foreach ($remoteNames as $remoteName) {
            $remotes[] = $this->getRemote($remoteName, $queryRemotes);
        }

        return $remotes;
    }
public function getRemotes ( bool $ queryRemotes = true ) { $ remoteNames = $ this -> caller -> execute ( RemoteCommand :: getInstance ( $ this ) -> show ( null , $ queryRemotes ) ) -> getOutputLines ( true ) ; $ remotes = [ ] ; foreach ( $ remoteNames as $ remoteName ) { $ remotes [ ] = $ this -> getRemote ( $ remoteName , $ queryRemotes ) ; } return $ remotes ; }
gets a list of remote objects

@param bool $queryRemotes Fetch new information from remotes

@throws \RuntimeException
@throws \Symfony\Component\Process\Exception\LogicException
@throws InvalidArgumentException
@throws \Symfony\Component\Process\Exception\RuntimeException
@return array
gets a list of remote objects