wip add wfl
This commit is contained in:
1 parent
a125dddb4c
commit
bf5e06848a
17 files changed
+188
-43
No files matched your search
@@ -50,6 +50,9 @@ class ExpectationsBox3
|
||||
// TSH
|
||||
$tmp['tsh']['home'] += $val->tsh_h;
|
||||
$tmp['tsh']['away'] += $val->tsh_a;
|
||||
// WFL
|
||||
$tmp['wfl']['home'] += $val->wfl_h;
|
||||
$tmp['wfl']['away'] += $val->wfl_a;
|
||||
}
|
||||
foreach ($bets as $bet) {
|
||||
$expectations[$bet]['home'] = round($tmp[$bet]['home'] / $events, 1);
|
||||
@@ -89,6 +92,10 @@ class ExpectationsBox3
|
||||
$tmp['tsh']['home']['events']['home']++;
|
||||
$tmp['tsh']['home']['scored']['home'] += $val->tsh_h;
|
||||
$tmp['tsh']['home']['conceded']['home'] += $val->tsh_a;
|
||||
// TSH
|
||||
$tmp['wfl']['home']['events']['home']++;
|
||||
$tmp['wfl']['home']['scored']['home'] += $val->wfl_h;
|
||||
$tmp['wfl']['home']['conceded']['home'] += $val->wfl_a;
|
||||
|
||||
}
|
||||
// away home
|
||||
@@ -121,6 +128,10 @@ class ExpectationsBox3
|
||||
$tmp['tsh']['away']['events']['home']++;
|
||||
$tmp['tsh']['away']['scored']['home'] += $val->tsh_h;
|
||||
$tmp['tsh']['away']['conceded']['home'] += $val->tsh_a;
|
||||
// WFL
|
||||
$tmp['wfl']['away']['events']['home']++;
|
||||
$tmp['wfl']['away']['scored']['home'] += $val->wfl_h;
|
||||
$tmp['wfl']['away']['conceded']['home'] += $val->wfl_a;
|
||||
}
|
||||
// home away
|
||||
if ($match->home_id == $val->away_id) {
|
||||
@@ -152,6 +163,10 @@ class ExpectationsBox3
|
||||
$tmp['tsh']['home']['events']['away']++;
|
||||
$tmp['tsh']['home']['scored']['away'] += $val->tsh_a;
|
||||
$tmp['tsh']['home']['conceded']['away'] += $val->tsh_h;
|
||||
// WFL
|
||||
$tmp['wfl']['home']['events']['away']++;
|
||||
$tmp['wfl']['home']['scored']['away'] += $val->wfl_a;
|
||||
$tmp['wfl']['home']['conceded']['away'] += $val->wfl_h;
|
||||
|
||||
}
|
||||
// away away
|
||||
@@ -184,6 +199,10 @@ class ExpectationsBox3
|
||||
$tmp['tsh']['away']['events']['away']++;
|
||||
$tmp['tsh']['away']['scored']['away'] += $val->tsh_a;
|
||||
$tmp['tsh']['away']['conceded']['away'] += $val->tsh_h;
|
||||
// WFL
|
||||
$tmp['wfl']['away']['events']['away']++;
|
||||
$tmp['wfl']['away']['scored']['away'] += $val->wfl_a;
|
||||
$tmp['wfl']['away']['conceded']['away'] += $val->wfl_h;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -221,7 +240,7 @@ class ExpectationsBox3
|
||||
public static function sceleton()
|
||||
{
|
||||
$tmp = [];
|
||||
$bets = ['gls', 'crn', 'fls', 'ofs', 'crd', 'snt', 'tsh'];
|
||||
$bets = ['gls', 'crn', 'fls', 'ofs', 'crd', 'snt', 'tsh', 'wfl'];
|
||||
foreach ($bets as $bet) {
|
||||
$tmp[$bet]['home']['events']['home'] = 0;
|
||||
$tmp[$bet]['home']['scored']['home'] = 0;
|
||||
|
||||
Reference in new issue
Block a user