Changeset 3874:ab8368569446 for inc/core/class.dc.store.php
- Timestamp:
- 09/14/18 12:16:17 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.store.php
r3812 r3874 24 24 25 25 /** @var array Modules fields to search on and their weighting */ 26 public static $weighting = array('id' => 10, 'name' => 8, 'author' => 6, 'tags' => 4, 'desc' => 2);26 public static $weighting = ['id' => 10, 'name' => 8, 'author' => 6, 'tags' => 4, 'desc' => 2]; 27 27 28 28 /** @var string User agent used to query repository */ … … 67 67 $raw_datas = $parser->getModules(); 68 68 69 uasort($raw_datas, array('self', 'sort'));69 uasort($raw_datas, ['self', 'sort']); 70 70 71 71 $skipped = array_keys($this->modules->getDisabledModules()); … … 76 76 } 77 77 78 $updates = array();78 $updates = []; 79 79 $current = $this->modules->getModules(); 80 80 foreach ($current as $p_id => $p_infos) { … … 90 90 } 91 91 92 $this->data = array(92 $this->data = [ 93 93 'new' => $raw_datas, 94 94 'update' => $updates 95 );95 ]; 96 96 97 97 return true; … … 125 125 public function search($pattern) 126 126 { 127 $result = array();127 $result = []; 128 128 129 129 # Split query into small clean words … … 245 245 public static function patternize($str) 246 246 { 247 $arr = array();247 $arr = []; 248 248 249 249 foreach (explode(' ', $str) as $_) {
Note: See TracChangeset
for help on using the changeset viewer.