bug card away 0
This commit is contained in:
1 parent
cc6eeec231
commit
f37c00ea0b
3 files changed
+12
-12
No files matched your search
@@ -244,7 +244,7 @@ class LoadEvents
|
||||
break;
|
||||
case 'crd':
|
||||
$val_home = (int) $value['crd_a'];
|
||||
$val_away = (int) $value['crds_h'];
|
||||
$val_away = (int) $value['crd_h'];
|
||||
break;
|
||||
case 'snt':
|
||||
$val_home = (int) $value['snt_a'];
|
||||
|
||||
@@ -61,16 +61,16 @@ class StatsMedianAverage extends StatsOverviewWidget
|
||||
$away_team = $data['away_team'];
|
||||
}
|
||||
|
||||
if (! $total_home) {
|
||||
return [
|
||||
Stat::make('Number of events', 0),
|
||||
Stat::make('Average ' . $statistic_type, self::template(0, 0, $home_team, $away_team)),
|
||||
Stat::make('Median ' . $statistic_type, self::template(0, 0, $home_team, $away_team)),
|
||||
Stat::make('Win', 0),
|
||||
Stat::make('Draw', 0),
|
||||
Stat::make('Lost', 0),
|
||||
];
|
||||
}
|
||||
// if (! $total_home) {
|
||||
// return [
|
||||
// Stat::make('Number of events', 0),
|
||||
// Stat::make('Average ' . $statistic_type, self::template(0, 0, $home_team, $away_team)),
|
||||
// Stat::make('Median ' . $statistic_type, self::template(0, 0, $home_team, $away_team)),
|
||||
// Stat::make('Win', 0),
|
||||
// Stat::make('Draw', 0),
|
||||
// Stat::make('Lost', 0),
|
||||
// ];
|
||||
// }
|
||||
|
||||
$median_home = self::getMedian($arr_home);
|
||||
$median_away = self::getMedian($arr_away);
|
||||
|
||||
Reference in new issue
Block a user