wip fix error box 3

This commit is contained in:
salam committed 2026-10-12 21:51:50 +02:00
1 parent 2728944c39
commit e52722d3e1
9 files changed
+455 -119

No files matched your search

@@ -6,18 +6,6 @@ use App\Filament\Widgets\Boxes\ExpectationsTeam;
class ExpectationCollecting
{
public static function add(array &$result, string $team, string $bettype, string $scored_conceded, string $location, int $value)
{
if (! isset($result[$bettype][$team][$scored_conceded][$location])) {
$result[$bettype][$team][$scored_conceded][$location]['evt'] = 1;
$result[$bettype][$team][$scored_conceded][$location]['sum'] = $value;
} else {
$result[$bettype][$team][$scored_conceded][$location]['evt']++;
$result[$bettype][$team][$scored_conceded][$location]['sum'] += $value;
}
}
// ExpectationCollecting::sort($similar_past_matches, $tmp, 'gls', $value->home_id, $value->away_id, $value->gls_h, $value->gls_a, $match);
public static function sort(string $similar_past_matches, array &$result, string $bettype, int $home_id, int $away_id, float $val_home, float $val_away, object $match)
{
@@ -88,4 +76,15 @@ class ExpectationCollecting
}
}
}
public static function add(array &$result, string $team, string $bettype, string $scored_conceded, string $location, int $value)
{
if (! isset($result[$bettype][$team][$scored_conceded][$location])) {
$result[$bettype][$team][$scored_conceded][$location]['evt'] = 1;
$result[$bettype][$team][$scored_conceded][$location]['sum'] = $value;
} else {
$result[$bettype][$team][$scored_conceded][$location]['evt']++;
$result[$bettype][$team][$scored_conceded][$location]['sum'] += $value;
}
}
}