This commit is contained in:
salam committed 2026-10-11 19:38:17 +02:00
1 parent e0c1baf849
commit c4796f0ade
2 files changed
+4 -4

No files matched your search

@@ -39,7 +39,7 @@ class ExpectationsTeam
return [];
}
$tmp = self::template();
$tmp = [];
foreach ($res as $value) {
// dd($match->home_id, $match->away_id, $value);
ExpectationCollecting::sort($similar_past_matches, $tmp, 'gls', $value->home_id, $value->away_id, $value->gls_h, $value->gls_a, $match);
@@ -52,12 +52,12 @@ class ExpectationsTeam
}
if ($expectations) {
if (self::$collectionMethod == 'A') {
if (self::$collectionMethod == 'A' or $similar_past_matches != 'none') {
$expectations = ExpectationMethodA::calc($tmp);
} else {
$expectations = ExpectationMethodB::calc($tmp);
ExpectationsMinMax::calc($expectations, $match);
}
ExpectationsMinMax::calc($expectations, $match);
}
$expectations['gls']['name'] = 'Goals';