INFRA-132 - Remove @static annotation
[civicrm-core.git] / CRM / Utils / Money.php
index 82ee2f71f84a43eedbded5078cb0c616e650f8a4..4bb1672441572554a9a280f5ce82fe12ae53c475 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -49,17 +49,21 @@ 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')
+   * @param string $valueFormat
+   *   The desired monetary value display format (e.g. '%!i').
    *
-   * @return string  formatted monetary string
+   * @return string
+   *   formatted monetary string
    *
-   * @static
    */
-  static function format($amount, $currency = NULL, $format = NULL, $onlyNumber = FALSE, $valueFormat = NULL) {
+  public static function format($amount, $currency = NULL, $format = NULL, $onlyNumber = FALSE, $valueFormat = NULL) {
 
     if (CRM_Utils_System::isNull($amount)) {
       return '';
@@ -84,7 +88,10 @@ class CRM_Utils_Money {
     }
 
     if (!self::$_currencySymbols) {
-      self::$_currencySymbols = CRM_Core_PseudoConstant::get('CRM_Contribute_DAO_Contribution', 'currency', array('keyColumn' => 'name', 'labelColumn' => 'symbol'));
+      self::$_currencySymbols = CRM_Core_PseudoConstant::get('CRM_Contribute_DAO_Contribution', 'currency', array(
+          'keyColumn' => 'name',
+          'labelColumn' => 'symbol'
+        ));
     }
 
     if (!$currency) {
@@ -120,4 +127,3 @@ class CRM_Utils_Money {
     return strtr($format, $replacements);
   }
 }
-