数组定义规范统一

This commit is contained in:
thinkphp
2013-04-01 11:03:19 +08:00
parent 668aca97c8
commit 6f5db51323
33 changed files with 87 additions and 87 deletions

View File

@@ -29,7 +29,7 @@ class Memcache {
* @param array $options 缓存参数
* @access public
*/
public function __construct($options=array()) {
public function __construct($options=[]) {
if ( !extension_loaded('memcache') ) {
throw new Exception('_NOT_SUPPERT_:memcache');
}
@@ -71,7 +71,7 @@ class Memcache {
// 记录缓存队列
$queue = $this->handler->get('__info__');
if(!$queue) {
$queue = array();
$queue = [];
}
if(false===array_search($name, $queue)) array_push($queue,$name);
if(count($queue) > $this->options['length']) {