[Nostromo] Apply PHP Mess Detector recommendations

This commit is contained in:
Andrés Montañez
2017-01-10 22:02:35 -03:00
parent 2c567bebff
commit c2b83428f0
2 changed files with 9 additions and 9 deletions
+8 -7
View File
@@ -144,15 +144,16 @@ class DeployCommand extends AbstractCommand
if (count($hosts) == 0) {
$output->writeln(sprintf(' No hosts defined, skipping %s tasks', $this->getStageName()));
$output->writeln('');
} else {
foreach ($hosts as $host) {
$this->runtime->setWorkingHost($host);
if (!$this->runTasks($output, $tasks)) {
$this->runtime->setWorkingHost(null);
throw $this->getException();
}
return true;
}
foreach ($hosts as $host) {
$this->runtime->setWorkingHost($host);
if (!$this->runTasks($output, $tasks)) {
$this->runtime->setWorkingHost(null);
throw $this->getException();
}
$this->runtime->setWorkingHost(null);
}
}