|
@@ -94,10 +94,9 @@ class Statistics {
|
|
|
if ($s != null && $s['avg'] != 0)
|
|
|
return $this->symbol;
|
|
|
|
|
|
- $this->symbol = array_map(function(array $symbol) {
|
|
|
+ array_walk($this->symbol, function(array &$symbol) {
|
|
|
$symbol['avg'] = new CustomUnit($symbol['count'] / $this->count * 100, '%');
|
|
|
- return $symbol;
|
|
|
- }, $this->symbol);
|
|
|
+ });
|
|
|
|
|
|
usort($this->symbol, function(array $a, array $b) {
|
|
|
return (int)($a['avg']->sub($b['avg']))->getValue();
|