mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-05-24 17:32:14 +02:00
update defaults configuration
This commit is contained in:
parent
05f07474eb
commit
edf9c86890
|
@ -157,18 +157,13 @@ class Config
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns the default deployment configuration from general configuration
|
||||
* Returns the default environment configuration from general configuration
|
||||
*
|
||||
* @return array the default deployment configuration
|
||||
* @return array the default environment configuration
|
||||
*/
|
||||
protected function getDefaultEnvironment() {
|
||||
$defaults = $this->general('defaults', null);
|
||||
|
||||
if(!empty($defaults) && array_key_exists('deployment', $defaults)) {
|
||||
return $defaults['deployment'];
|
||||
}
|
||||
|
||||
return array();
|
||||
return !empty($defaults) ? $defaults : array();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue