wup
This commit is contained in:
1 parent
c2f068e8bf
commit
436a8ec142
8 files changed
+158
-86
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user