Swapped all array() for the shorthand []
Also finished up coverage on the Cache class.
This commit is contained in:
parent
aecdd0981f
commit
200988eecf
17 changed files with 115 additions and 97 deletions
|
@ -34,7 +34,7 @@ class Config extends Object
|
|||
*
|
||||
* @var array
|
||||
*/
|
||||
public $data = array();
|
||||
public $data = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
|
@ -83,7 +83,7 @@ class Config extends Object
|
|||
{
|
||||
if (!is_array($hosts))
|
||||
{
|
||||
$hosts = array($hosts);
|
||||
$hosts = [$hosts];
|
||||
}
|
||||
|
||||
// Tries to determine the environment name
|
||||
|
@ -161,7 +161,7 @@ class Config extends Object
|
|||
}
|
||||
|
||||
// Defaults expected PICKLES options to false
|
||||
foreach (array('cache', 'logging', 'minify') as $variable)
|
||||
foreach (['cache', 'logging', 'minify'] as $variable)
|
||||
{
|
||||
if (!isset($this->data['pickles'][$variable]))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue