wip add wfl
This commit is contained in:
1 parent
a125dddb4c
commit
bf5e06848a
17 files changed
+188
-43
No files matched your search
@@ -81,6 +81,10 @@ class LoadEventsAverages
|
||||
$league_home[] = (int) $value['tsh_h'];
|
||||
$league_away[] = (int) $value['tsh_a'];
|
||||
break;
|
||||
case 'wfl':
|
||||
$league_home[] = (int) $value['wfl_h'];
|
||||
$league_away[] = (int) $value['wfl_a'];
|
||||
break;
|
||||
}
|
||||
|
||||
if ((! $team_position || $team_position == 'all') && ($team_id == $value['home_id'] or $team_id == $value['away_id'])) {
|
||||
@@ -148,6 +152,15 @@ class LoadEventsAverages
|
||||
$team_away[] = (int) $value['tsh_h'];
|
||||
}
|
||||
break;
|
||||
case 'wfl':
|
||||
if ($team_id == $value['home_id']) {
|
||||
$team_home[] = (int) $value['wfl_h'];
|
||||
$team_away[] = (int) $value['wfl_a'];
|
||||
} else {
|
||||
$team_home[] = (int) $value['wfl_a'];
|
||||
$team_away[] = (int) $value['wfl_h'];
|
||||
}
|
||||
break;
|
||||
}
|
||||
} elseif ($team_position == 'home' && $team_id == $value['home_id']) {
|
||||
switch ($statistic_type) {
|
||||
@@ -179,6 +192,10 @@ class LoadEventsAverages
|
||||
$team_home[] = (int) $value['tsh_h'];
|
||||
$team_away[] = (int) $value['tsh_a'];
|
||||
break;
|
||||
case 'wfl':
|
||||
$team_home[] = (int) $value['wfl_h'];
|
||||
$team_away[] = (int) $value['wfl_a'];
|
||||
break;
|
||||
}
|
||||
} elseif ($team_position == 'away' && $team_id == $value['away_id']) {
|
||||
switch ($statistic_type) {
|
||||
@@ -210,6 +227,10 @@ class LoadEventsAverages
|
||||
$team_home[] = (int) $value['tsh_a'];
|
||||
$team_away[] = (int) $value['tsh_h'];
|
||||
break;
|
||||
case 'wfl':
|
||||
$team_home[] = (int) $value['wfl_a'];
|
||||
$team_away[] = (int) $value['wfl_h'];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user