Merge pull request #4372 from davecivicrm/CRM-15467
[civicrm-core.git] / CRM / Utils / Money.php
index 354b467f041b149dabf72d05bf89a385bd06e9d6..69e60df32226981d58fed7dbb8f0f657fe1c73a0 100644 (file)
@@ -49,9 +49,10 @@ class CRM_Utils_Money {
    * %C - the currency ISO code (e.g., 'USD') if provided
    * %c - the currency symbol (e.g., '$') if available
    *
-   * @param float  $amount      the monetary amount to display (1234.56)
-   * @param string $currency    the three-letter ISO currency code ('USD')
-   * @param string $format      the desired currency format
+   * @param float $amount the monetary amount to display (1234.56)
+   * @param string $currency the three-letter ISO currency code ('USD')
+   * @param string $format the desired currency format
+   * @param bool $onlyNumber
    * @param string $valueFormat the desired monetary value display format (e.g. '%!i')
    *
    * @return string  formatted monetary string
@@ -69,11 +70,11 @@ class CRM_Utils_Money {
     if (!$format) {
       $format = $config->moneyformat;
     }
-    
+
     if (!$valueFormat) {
       $valueFormat = $config->moneyvalueformat;
     }
-     
+
     if ($onlyNumber) {
       // money_format() exists only in certain PHP install (CRM-650)
       if (is_numeric($amount) and function_exists('money_format')) {