[Scrutinizer] Fix Major issues

This commit is contained in:
Andrés Montañez
2017-01-24 17:28:37 -03:00
parent 881cf7a3a9
commit aa47edbc1b
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -49,7 +49,7 @@ class Runtime
/**
* @var string|null The host being deployed to
*/
protected $workingHost;
protected $workingHost = null;
/**
* @var string|null The Release ID
@@ -420,7 +420,7 @@ class Runtime
}
$hostPath = rtrim($this->getEnvOption('host_path'), '/');
if ($jail && $this->getReleaseId()) {
if ($jail && $this->getReleaseId() !== null) {
$cmdDelegate = sprintf('cd %s/releases/%s && %s', $hostPath, $this->getReleaseId(), $cmdDelegate);
} elseif ($jail) {
$cmdDelegate = sprintf('cd %s && %s', $hostPath, $cmdDelegate);