This commit is contained in:
salam committed 2026-06-15 14:07:51 +02:00
1 parent 146c144c87
commit 2bb0915fce
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@
## 8) Nel Riepilogo in verde, quando si seleziona SIMILAR PAST MATCHES sono invertiti WIN con LOST
## 9) Nel Riepilogo in verde, quando si seleziona SIMILAR PAST MATCHES è opportuno sostituire Win con 1, Draw con X e Lost con 2
## 10) Nel Riepilogo in verde, quando si seleziona SIMILAR PAST MATCHES sono sbagliate le Average Goals
11) Nel Riepilogo in verde, quando si seleziona SIMILAR PAST MATCHES i valori delle quote dovrebbero avere due decimali fissi
## 11) Nel Riepilogo in verde, quando si seleziona SIMILAR PAST MATCHES i valori delle quote dovrebbero avere due decimali fissi
12) Filtrando per PLAYER sono sbagliate le Average Goals, sia Totali che Home/Away
13) Quando si filtra per PLAYER meglio sostituire Home con In Favour e Away con Against
14) Un piccolo dettaglio: nella combo SIMILAR PAST MATCHES la terza voce è All: Database, ma i ":" dovrebbero essere prima di "All"
@@ -19,9 +19,9 @@ class HelperMoveingAverage
$last = count($arr);
foreach ($arr as $key => $value) {
if ($key == 1 && $last > 2) {
$new[] = round(($arr[0] + $value + $arr[2]) / 3, 1);
$new[] = round(((float) $arr[0] + (float) $value + (float) $arr[2]) / 3, 1);
} elseif ($key > 1 && $key < $last - 1) {
$new[] = round(($arr[$key - 1] + $value + $arr[$key + 1]) / 3, 1);
$new[] = round(((float) $arr[$key - 1] + (float) $value + (float) $arr[$key + 1]) / 3, 1);
}
}
$data['datasets'][$k]['data'] = $new;