Permalink
Browse files

Replaced array() with []

  • Loading branch information...
Cameri committed Oct 29, 2013
1 parent 2c89310 commit d22a14415204beb384bd80560236baa2c3627c48
Showing with 3 additions and 3 deletions.
  1. +3 −3 Cake/Cache/Engine/ApcEngine.php
@@ -29,7 +29,7 @@ class ApcEngine extends CacheEngine {
*
* @var array
*/
protected $_compiledGroupNames = array();
protected $_compiledGroupNames = [];
/**
* Initialize the Cache Engine
@@ -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) . '_';
}
@@ -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];

0 comments on commit d22a144

Please sign in to comment.