diff --git a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStore1x2.php b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStore1x2.php index 450b259e..0a4f09bd 100644 --- a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStore1x2.php +++ b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStore1x2.php @@ -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);