Skip to content

Commit

Permalink
Replaced array() with []
Browse files Browse the repository at this point in the history
  • Loading branch information
cameri committed Oct 29, 2013
1 parent 2c89310 commit d22a144
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Cake/Cache/Engine/ApcEngine.php
Expand Up @@ -29,7 +29,7 @@ class ApcEngine extends CacheEngine {
*
* @var array
*/
protected $_compiledGroupNames = array();
protected $_compiledGroupNames = [];

/**
* Initialize the Cache Engine
Expand All @@ -39,7 +39,7 @@ class ApcEngine extends CacheEngine {
* @param array $settings array of setting for the engine
* @return boolean True if the engine has been successfully initialized, false if not
*/
public function init($settings = array()) {
public function init($settings = []) {
if (!isset($settings['prefix'])) {
$settings['prefix'] = Inflector::slug(APP_DIR) . '_';
}
Expand Down Expand Up @@ -158,7 +158,7 @@ public function groups() {
ksort($groups);
}

$result = array();
$result = [];
$groups = array_values($groups);
foreach ($this->settings['groups'] as $i => $group) {
$result[] = $group . $groups[$i];
Expand Down

0 comments on commit d22a144

Please sign in to comment.