1
0
mirror of https://github.com/cp6/my-idlers.git synced 2024-11-16 15:33:44 +01:00

Minor code update

Minor code update
This commit is contained in:
cp6 2022-10-20 11:12:53 +11:00
parent 17b7733258
commit 736b6c9479

View File

@ -48,7 +48,7 @@ class Pricing extends Model
private static function getRates($currency): float private static function getRates($currency): float
{ {
$rate = self::refreshRates()->$currency; $rate = self::refreshRates()->$currency;
return $rate === null ? 1.00 : $rate; return $rate ?? 1.00;
} }
public static function getCurrencyList(): array public static function getCurrencyList(): array