wip MaglooStore1x2 bug
This commit is contained in:
1 parent
113dbad806
commit
15a900b2a8
1 file changed
+4
-4
@@ -8,12 +8,12 @@ use Illuminate\Support\Facades\DB;
|
||||
|
||||
class MaglooStore1x2
|
||||
{
|
||||
public static function store($value, $base)
|
||||
public static function store(array $value, array $base)
|
||||
{
|
||||
$odds = [];
|
||||
$odds['h3w'] = number_format($value['static'][1], 2) ?? 1;
|
||||
$odds['d3w'] = number_format($value['static'][2], 2) ?? 1;
|
||||
$odds['a3w'] = number_format($value['static'][3], 2) ?? 1;
|
||||
$odds['h3w'] = number_format($value['static'][1] ?? 1, 2) ?? 1;
|
||||
$odds['d3w'] = number_format($value['static'][2] ?? 1, 2) ?? 1;
|
||||
$odds['a3w'] = number_format($value['static'][3] ?? 1, 2) ?? 1;
|
||||
$odds['margin'] = (float) Margin::calculate($odds, 1);
|
||||
$odds['flags'] = 1;
|
||||
$odds = array_merge($odds, $base);
|
||||
|
||||
Reference in new issue
Block a user