|
@@ -263,7 +263,7 @@ class Service
|
|
$files = [];
|
|
$files = [];
|
|
if (!empty($status['scripts']) && $this->getOption('allow_filelist')) {
|
|
if (!empty($status['scripts']) && $this->getOption('allow_filelist')) {
|
|
uasort($status['scripts'], function ($a, $b) {
|
|
uasort($status['scripts'], function ($a, $b) {
|
|
- return $a['hits'] < $b['hits'];
|
|
|
|
|
|
+ return $a['hits'] <=> $b['hits'];
|
|
});
|
|
});
|
|
foreach ($status['scripts'] as &$file) {
|
|
foreach ($status['scripts'] as &$file) {
|
|
$file['full_path'] = str_replace('\\', '/', $file['full_path']);
|
|
$file['full_path'] = str_replace('\\', '/', $file['full_path']);
|