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 = [
|
protected static array $types = [
|
||||||
'gls' => 'Goals',
|
'gls' => 'Goals',
|
||||||
'crn' => 'Corner',
|
'crn' => 'Corner',
|
||||||
'fls' => 'Fouls',
|
'fls' => 'Fouls Commited',
|
||||||
'ofs' => 'Offside',
|
'ofs' => 'Offside',
|
||||||
'crd' => 'Cards',
|
'crd' => 'Cards',
|
||||||
'snt' => 'S on T',
|
'snt' => 'Shots on Target',
|
||||||
'tsh' => 'Shots',
|
'tsh' => 'Total Shots',
|
||||||
];
|
];
|
||||||
|
|
||||||
public static function get($filter): string
|
public static function get($filter): string
|
||||||
|
|||||||
@@ -81,6 +81,7 @@ class StatsMedianAverage extends StatsOverviewWidget
|
|||||||
$m1 = floor($m);
|
$m1 = floor($m);
|
||||||
$m2 = ceil($m);
|
$m2 = ceil($m);
|
||||||
$median_home = round(($arr_home[$m1] + $arr_home[$m2]) / 2, 2);
|
$median_home = round(($arr_home[$m1] + $arr_home[$m2]) / 2, 2);
|
||||||
|
|
||||||
$m = $total_away / 2;
|
$m = $total_away / 2;
|
||||||
$m1 = floor($m);
|
$m1 = floor($m);
|
||||||
$m2 = ceil($m);
|
$m2 = ceil($m);
|
||||||
@@ -90,6 +91,7 @@ class StatsMedianAverage extends StatsOverviewWidget
|
|||||||
// odd
|
// odd
|
||||||
$m = $total_home / 2;
|
$m = $total_home / 2;
|
||||||
$median_home = $arr_home[$m];
|
$median_home = $arr_home[$m];
|
||||||
|
|
||||||
$m = floor($total_away / 2);
|
$m = floor($total_away / 2);
|
||||||
$median_away = $arr_away[$m];
|
$median_away = $arr_away[$m];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user