wip
This commit is contained in:
1 parent
6ff905fafd
commit
23022a7266
2 files changed
+5
-3
No files matched your search
@@ -7,11 +7,11 @@ class HelperStatisticType
|
||||
protected static array $types = [
|
||||
'gls' => 'Goals',
|
||||
'crn' => 'Corner',
|
||||
'fls' => 'Fouls',
|
||||
'fls' => 'Fouls Commited',
|
||||
'ofs' => 'Offside',
|
||||
'crd' => 'Cards',
|
||||
'snt' => 'S on T',
|
||||
'tsh' => 'Shots',
|
||||
'snt' => 'Shots on Target',
|
||||
'tsh' => 'Total Shots',
|
||||
];
|
||||
|
||||
public static function get($filter): string
|
||||
|
||||
@@ -81,6 +81,7 @@ class StatsMedianAverage extends StatsOverviewWidget
|
||||
$m1 = floor($m);
|
||||
$m2 = ceil($m);
|
||||
$median_home = round(($arr_home[$m1] + $arr_home[$m2]) / 2, 2);
|
||||
|
||||
$m = $total_away / 2;
|
||||
$m1 = floor($m);
|
||||
$m2 = ceil($m);
|
||||
@@ -90,6 +91,7 @@ class StatsMedianAverage extends StatsOverviewWidget
|
||||
// odd
|
||||
$m = $total_home / 2;
|
||||
$median_home = $arr_home[$m];
|
||||
|
||||
$m = floor($total_away / 2);
|
||||
$median_away = $arr_away[$m];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user