currency_code !== $defaultCurrency; if ($needsConversion) { return CurrencyConverter::convertBalance( $amountCents, $this->currency_code, $defaultCurrency ); } return $amountCents; } public function formatAmountToDefaultCurrency(int $amountCents): string { $convertedCents = $this->convertAmountToDefaultCurrency($amountCents); return CurrencyConverter::convertCentsToFormatSimple($convertedCents); } }