wip
This commit is contained in:
1 parent
a7de253291
commit
7b36b71316
3 files changed
+46
-6
No files matched your search
@@ -581,7 +581,7 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa
|
||||
switch ($bettype) {
|
||||
case 'goals':
|
||||
if ($val->total_min < $this->y_value || $val->goals == 0) {
|
||||
$tmp['asp_teorica_' . $bettype] = $asp_statistica;
|
||||
$tmp['asp_gioco_' . $bettype] = $asp_statistica;
|
||||
$tmp['asp_teorica_' . $bettype] = ($this->x_value * $asp_statistica) / (1 + $this->x_value);
|
||||
} else {
|
||||
$asp_gioco = $val->goals / $val->total_min * 90;
|
||||
@@ -591,7 +591,7 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa
|
||||
break;
|
||||
case 'cards':
|
||||
if ($val->total_min < $this->y_value || $val->cards == 0) {
|
||||
$tmp['asp_teorica_' . $bettype] = $asp_statistica;
|
||||
$tmp['asp_gioco_' . $bettype] = $asp_statistica;
|
||||
$tmp['asp_teorica_' . $bettype] = ($this->x_value * $asp_statistica) / (1 + $this->x_value);
|
||||
} else {
|
||||
$asp_gioco = $val->cards / $val->total_min * 90;
|
||||
@@ -601,7 +601,7 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa
|
||||
break;
|
||||
case 'fouls':
|
||||
if ($val->total_min < $this->y_value || $val->fouls == 0) {
|
||||
$tmp['asp_teorica_' . $bettype] = $asp_statistica;
|
||||
$tmp['asp_gioco_' . $bettype] = $asp_statistica;
|
||||
$tmp['asp_teorica_' . $bettype] = ($this->x_value * $asp_statistica) / (1 + $this->x_value);
|
||||
} else {
|
||||
$asp_gioco = $val->fouls / $val->total_min * 90;
|
||||
@@ -611,7 +611,7 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa
|
||||
break;
|
||||
case 'offsides':
|
||||
if ($val->total_min < $this->y_value || $val->offsides == 0) {
|
||||
$tmp['asp_teorica_' . $bettype] = $asp_statistica;
|
||||
$tmp['asp_gioco_' . $bettype] = $asp_statistica;
|
||||
$tmp['asp_teorica_' . $bettype] = ($this->x_value * $asp_statistica) / (1 + $this->x_value);
|
||||
} else {
|
||||
$asp_gioco = $val->offsides / $val->total_min * 90;
|
||||
@@ -621,7 +621,7 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa
|
||||
break;
|
||||
case 'total_shots':
|
||||
if ($val->total_min < $this->y_value || $val->total_shots == 0) {
|
||||
$tmp['asp_teorica_' . $bettype] = $asp_statistica;
|
||||
$tmp['asp_gioco_' . $bettype] = $asp_statistica;
|
||||
$tmp['asp_teorica_' . $bettype] = ($this->x_value * $asp_statistica) / (1 + $this->x_value);
|
||||
} else {
|
||||
$asp_gioco = $val->total_shots / $val->total_min * 90;
|
||||
@@ -631,7 +631,7 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa
|
||||
break;
|
||||
case 'shots_on_target':
|
||||
if ($val->total_min < $this->y_value || $val->shots_on_target == 0) {
|
||||
$tmp['asp_teorica_' . $bettype] = $asp_statistica;
|
||||
$tmp['asp_gioco_' . $bettype] = $asp_statistica;
|
||||
$tmp['asp_teorica_' . $bettype] = ($this->x_value * $asp_statistica) / (1 + $this->x_value);
|
||||
} else {
|
||||
$asp_gioco = $val->shots_on_target / $val->total_min * 90;
|
||||
|
||||
Reference in new issue
Block a user