Swapped all array() for the shorthand []

Also finished up coverage on the Cache class.
This commit is contained in:
Joshua Sherman 2014-01-15 14:09:54 -05:00
parent aecdd0981f
commit 200988eecf
17 changed files with 115 additions and 97 deletions

View file

@ -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]))
{