Changeset 3874:ab8368569446 for inc/core/class.dc.update.php
- Timestamp:
- 09/14/18 12:16:17 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.update.php
r3872 r3874 21 21 protected $cache_file; 22 22 23 protected $version_info = array(23 protected $version_info = [ 24 24 'version' => null, 25 25 'href' => null, … … 28 28 'php' => '5.6', 29 29 'notify' => true 30 );30 ]; 31 31 32 32 protected $cache_ttl = '-6 hours'; 33 protected $forced_files = array();33 protected $forced_files = []; 34 34 35 35 /** … … 314 314 unset($opts, $cur_digests, $new_digests, $zip); 315 315 316 $not_readable = array();316 $not_readable = []; 317 317 318 318 if (!empty($this->forced_files)) { … … 376 376 } 377 377 378 $zip_files = array();379 $not_writable = array();378 $zip_files = []; 379 $not_writable = []; 380 380 381 381 foreach ($new_files as $file) { … … 424 424 $new_md5 = $new_path = $new_digests; 425 425 426 array_walk($cur_md5, array($this, 'parseLine'), 1);427 array_walk($cur_path, array($this, 'parseLine'), 2);428 array_walk($new_md5, array($this, 'parseLine'), 1);429 array_walk($new_path, array($this, 'parseLine'), 2);426 array_walk($cur_md5, [$this, 'parseLine'], 1); 427 array_walk($cur_path, [$this, 'parseLine'], 2); 428 array_walk($new_md5, [$this, 'parseLine'], 1); 429 array_walk($new_path, [$this, 'parseLine'], 2); 430 430 431 431 $cur = array_combine($cur_md5, $cur_path); … … 464 464 $contents = file($digests_file, $opts); 465 465 466 $changes = array();466 $changes = []; 467 467 468 468 foreach ($contents as $digest) {
Note: See TracChangeset
for help on using the changeset viewer.