Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/laraflow/core into main
Browse files Browse the repository at this point in the history
  • Loading branch information
hafijul233 committed Aug 6, 2022
2 parents 3b70e49 + 73ddf10 commit 8256bb9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Supports/Money.php
Original file line number Diff line number Diff line change
Expand Up @@ -2650,9 +2650,9 @@ public static function all(): array
/**
* Return Currency Formatted string from number
*
* @param mixed $amount
* @param string $currency
* @param bool $onlyCurrency
* @param mixed $amount
* @param string $currency
* @param bool $onlyCurrency
* @return string|null
*/
public static function format($amount = null, string $currency = self::USD, bool $onlyCurrency = false): ?string
Expand All @@ -2672,10 +2672,10 @@ public static function format($amount = null, string $currency = self::USD, bool
);

$amount = ($onlyCurrency == true)
? $currency . ' ' . $formattedAmount
? $currency.' '.$formattedAmount
: (($currencyConfig['symbol_first'] == true)
? $currencyConfig['symbol'] . ' ' . $formattedAmount
: $formattedAmount . ' ' . $currencyConfig['symbol']);
? $currencyConfig['symbol'].' '.$formattedAmount
: $formattedAmount.' '.$currencyConfig['symbol']);
}

return $amount;
Expand All @@ -2684,7 +2684,7 @@ public static function format($amount = null, string $currency = self::USD, bool
/**
* Return single currency
*
* @param string $name
* @param string $name
* @return array|null
*/
public static function get(string $name): ?array
Expand Down

0 comments on commit 8256bb9

Please sign in to comment.