Simplify conditional block
This commit is contained in:
parent
fb051b2f98
commit
d9f00ca7be
@ -229,10 +229,8 @@ class ArgvInput extends Input
|
||||
$value = $option->isValueOptional() ? $option->getDefault() : true;
|
||||
}
|
||||
|
||||
if ($option->isArray() && isset($this->options[$name])) {
|
||||
if ($option->isArray()) {
|
||||
$this->options[$name][] = $value;
|
||||
} else if ($option->isArray()) {
|
||||
$this->options[$name] = array($value);
|
||||
} else {
|
||||
$this->options[$name] = $value;
|
||||
}
|
||||
|
Reference in New Issue
Block a user