This commit is contained in:
salam committed 2026-10-10 22:24:13 +02:00
1 parent c2f068e8bf
commit 436a8ec142
8 files changed
+158 -86

No files matched your search

@@ -62,17 +62,19 @@ class ExpectationsMinMax
}
foreach ($bets as $key) {
if ($expectations[$key]['home'] > $final[$key]['max']) {
$expectations[$key]['home'] = $final[$key]['max'];
}
if ($expectations[$key]['away'] > $final[$key]['max']) {
$expectations[$key]['away'] = $final[$key]['max'];
}
if ($expectations[$key]['home'] < $final[$key]['min']) {
$expectations[$key]['home'] = $final[$key]['min'];
}
if ($expectations[$key]['away'] < $final[$key]['min']) {
$expectations[$key]['away'] = $final[$key]['min'];
if (isset($expectations[$key])) {
if ($expectations[$key]['home'] > $final[$key]['max']) {
$expectations[$key]['home'] = $final[$key]['max'];
}
if ($expectations[$key]['away'] > $final[$key]['max']) {
$expectations[$key]['away'] = $final[$key]['max'];
}
if ($expectations[$key]['home'] < $final[$key]['min']) {
$expectations[$key]['home'] = $final[$key]['min'];
}
if ($expectations[$key]['away'] < $final[$key]['min']) {
$expectations[$key]['away'] = $final[$key]['min'];
}
}
}
@@ -82,17 +84,19 @@ class ExpectationsMinMax
$gls_away_max = $match->exp_away * (1 + ($Y / 2));
$gls_away_min = $match->exp_away * (1 - ($Y / 2));
if ($expectations['gls']['home'] > $gls_home_max) {
$expectations['gls']['home'] = $gls_home_max;
}
if ($expectations['gls']['away'] > $gls_away_max) {
$expectations['gls']['away'] = $gls_away_max;
}
if ($expectations['gls']['home'] < $gls_home_min) {
$expectations['gls']['home'] = $gls_home_min;
}
if ($expectations['gls']['away'] < $gls_away_min) {
$expectations['gls']['away'] = $gls_away_min;
if (isset($expectations['gls'])) {
if ($expectations['gls']['home'] > $gls_home_max) {
$expectations['gls']['home'] = $gls_home_max;
}
if ($expectations['gls']['away'] > $gls_away_max) {
$expectations['gls']['away'] = $gls_away_max;
}
if ($expectations['gls']['home'] < $gls_home_min) {
$expectations['gls']['home'] = $gls_home_min;
}
if ($expectations['gls']['away'] < $gls_away_min) {
$expectations['gls']['away'] = $gls_away_min;
}
}
}
}