wip
This commit is contained in:
1 parent
fbf77c5d91
commit
3a729602cc
1 file changed
+16
-16
@@ -513,12 +513,12 @@ class PlayerPropsDrop extends Widget
|
||||
|
||||
// Log::debug('results', $results);
|
||||
// dd($asp_team_others);
|
||||
// "asp_riferimento_goals" => 4.4
|
||||
// "asp_riferimento_fouls" => 42.2
|
||||
// "asp_riferimento_offside" => 2.0
|
||||
// "asp_riferimento_card" => 8.8
|
||||
// "asp_riferimento_snt" => 15.4
|
||||
// "asp_riferimento_tsh" => 42.6
|
||||
// "asp_team_riferimento_goals" => 4.4
|
||||
// "asp_team_riferimento_fouls" => 42.2
|
||||
// "asp_team_riferimento_offside" => 2.0
|
||||
// "asp_team_riferimento_card" => 8.8
|
||||
// "asp_team_riferimento_snt" => 15.4
|
||||
// "asp_team_riferimento_tsh" => 42.6
|
||||
|
||||
$bettypes = ['goals', 'cards', 'fouls', 'offsides', 'total_shots', 'shots_on_target'];
|
||||
foreach ($bettypes as $bettype) {
|
||||
@@ -537,27 +537,27 @@ class PlayerPropsDrop extends Widget
|
||||
case 'cards':
|
||||
$results[$key]['asp_total_'.$bettype] = $total_bettype;
|
||||
$results[$key]['asp_player_'.$bettype] = $value['asp_teorica_'.$bettype] * $asp_team_others['asp_riferimento_card'] / $total_bettype;
|
||||
$results[$key]['asp_riferimento_card'] = $asp_team_others['asp_riferimento_card'];
|
||||
$results[$key]['asp_team_riferimento_card'] = $asp_team_others['asp_team_riferimento_card'];
|
||||
break;
|
||||
case 'fouls':
|
||||
$results[$key]['asp_total_'.$bettype] = $total_bettype;
|
||||
$results[$key]['asp_player_'.$bettype] = $value['asp_teorica_'.$bettype] * $asp_team_others['asp_riferimento_fouls'] / $total_bettype;
|
||||
$results[$key]['asp_riferimento_fouls'] = $asp_team_others['asp_riferimento_fouls'];
|
||||
$results[$key]['asp_player_'.$bettype] = $value['asp_teorica_'.$bettype] * $asp_team_others['asp_team_riferimento_fouls'] / $total_bettype;
|
||||
$results[$key]['asp_team_riferimento_fouls'] = $asp_team_others['asp_team_riferimento_fouls'];
|
||||
break;
|
||||
case 'offsides':
|
||||
$results[$key]['asp_total_'.$bettype] = $total_bettype;
|
||||
$results[$key]['asp_player_'.$bettype] = $value['asp_teorica_'.$bettype] * $asp_team_others['asp_riferimento_offside'] / $total_bettype;
|
||||
$results[$key]['asp_riferimento_offside'] = $asp_team_others['asp_riferimento_offside'];
|
||||
$results[$key]['asp_player_'.$bettype] = $value['asp_teorica_'.$bettype] * $asp_team_others['asp_team_riferimento_offside'] / $total_bettype;
|
||||
$results[$key]['asp_team_riferimento_offside'] = $asp_team_others['asp_team_riferimento_offside'];
|
||||
break;
|
||||
case 'total_shots':
|
||||
$results[$key]['asp_total_'.$bettype] = $total_bettype;
|
||||
$results[$key]['asp_player_'.$bettype] = $value['asp_teorica_'.$bettype] * $asp_team_others['asp_riferimento_tsh'] / $total_bettype;
|
||||
$results[$key]['asp_riferimento_tsh'] = $asp_team_others['asp_riferimento_tsh'];
|
||||
$results[$key]['asp_player_'.$bettype] = $value['asp_teorica_'.$bettype] * $asp_team_others['asp_team_riferimento_tsh'] / $total_bettype;
|
||||
$results[$key]['asp_team_riferimento_tsh'] = $asp_team_others['asp_team_riferimento_tsh'];
|
||||
break;
|
||||
case 'shots_on_target':
|
||||
$results[$key]['asp_total_'.$bettype] = $total_bettype;
|
||||
$results[$key]['asp_player_'.$bettype] = $value['asp_teorica_'.$bettype] * $asp_team_others['asp_riferimento_snt'] / $total_bettype;
|
||||
$results[$key]['asp_riferimento_snt'] = $asp_team_others['asp_riferimento_snt'];
|
||||
$results[$key]['asp_player_'.$bettype] = $value['asp_teorica_'.$bettype] * $asp_team_others['asp_team_riferimento_snt'] / $total_bettype;
|
||||
$results[$key]['asp_team_riferimento_snt'] = $asp_team_others['asp_team_riferimento_snt'];
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -630,7 +630,7 @@ class PlayerPropsDrop extends Widget
|
||||
}
|
||||
|
||||
foreach ($arr as $name => $value) {
|
||||
$arr['asp_riferimento_'.$name] = (float) round($value / $count_events * $count_player / 10, 1);
|
||||
$arr['asp_team_riferimento_'.$name] = (float) round($value / $count_events * $count_player / 10, 1);
|
||||
}
|
||||
|
||||
return $arr;
|
||||
|
||||
Reference in new issue
Block a user