diff --git a/src/Runtime/Runtime.php b/src/Runtime/Runtime.php index 83a49cc..3bcd793 100644 --- a/src/Runtime/Runtime.php +++ b/src/Runtime/Runtime.php @@ -143,7 +143,7 @@ class Runtime * Retrieve a value from the Vars bag * * @param string $key Variable name - * @param string $default Variable default value, returned if not found + * @param mixed $default Variable default value, returned if not found * @return string */ public function getVar($key, $default = null) @@ -369,10 +369,8 @@ class Runtime case self::ON_RELEASE: case self::POST_RELEASE: return $this->runRemoteCommand($cmd, true, $timeout); - break; default: return $this->runLocalCommand($cmd, $timeout); - break; } } diff --git a/src/Utils.php b/src/Utils.php index da6e80d..4dbe5ba 100644 --- a/src/Utils.php +++ b/src/Utils.php @@ -32,23 +32,18 @@ class Utils switch ($stage) { case Runtime::PRE_DEPLOY: return 'Pre Deploy'; - break; case Runtime::ON_DEPLOY: return 'On Deploy'; - break; case Runtime::POST_DEPLOY: return 'Post Deploy'; - break; case Runtime::ON_RELEASE: return 'On Release'; - break; case Runtime::POST_RELEASE: return 'Post Release'; - break; } return $stage;