This commit is contained in:
salam committed 2026-10-10 22:24:13 +02:00
1 parent c2f068e8bf
commit 436a8ec142
8 files changed
+158 -86

No files matched your search

+20 -1
View File
@@ -26,7 +26,7 @@ class LoadEventsBoxes
return [];
}
$expectations = [];
$expectations = self::template();
ExpectationsTeam::load($expectations, $filter, $match);
@@ -47,4 +47,23 @@ class LoadEventsBoxes
return $expectations;
}
public static function template()
{
$arr = [];
$bets = ['gls', 'crn', 'fls', 'ofs', 'crd', 'snt', 'tsh'];
foreach ($bets as $bet) {
foreach (['team_home', 'team_away'] as $team) {
foreach (['scored', 'conceded'] as $sc) {
foreach (['home', 'away'] as $ha) {
foreach (['evt', 'sum'] as $es) {
$arr[$bet][$team][$sc][$ha][$es] = 0;
}
}
}
}
}
return $arr;
}
}