| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function format($money_amount, Currency $currency) |
||
| 30 | { |
||
| 31 | // add currency sign |
||
| 32 | if ($currency->signB4()) { |
||
| 33 | if ($money_amount >= 0) { |
||
| 34 | return $currency->sign() . $money_amount; |
||
| 35 | } |
||
| 36 | return '-' . $currency->sign() . str_replace('-', '', $money_amount); |
||
| 37 | } |
||
| 38 | return $money_amount . $currency->sign(); |
||
| 39 | } |
||
| 40 | } |
||
| 42 | // Location: EventEspresso\core\services\currency/CurrencySignMoneyFormatter.php |