public function remoteUpdate($remote = null) { $command = ['git', 'remote', 'update']; if ($remote) { $command[] = $remote; } $this->processHelper->runCommand($command); }