Merge pull request #4950 from atif-shaikh/CRM-15826
[civicrm-core.git] / CRM / Core / BAO / PaperSize.php
index 485dccde17948a7072fa23b181a029631e9a6de9..2608314c1965e9053903fa8fe124ab7cba0e5f8b 100644 (file)
@@ -70,8 +70,6 @@ class CRM_Core_BAO_PaperSize extends CRM_Core_DAO_OptionValue {
   /**
    * Get Option Group ID for Paper Sizes
    *
-   * @param void
-   *
    * @return int
    *   Group ID (null if Group ID doesn't exist)
    */
@@ -92,9 +90,6 @@ class CRM_Core_BAO_PaperSize extends CRM_Core_DAO_OptionValue {
    * @param string $returnURL
    *   URL of page calling this function.
    *
-   * @return array
-   *   (reference)   List of Paper Sizes
-   * @static
    */
   public static function &addOrder(&$list, $returnURL) {
     $filter = "option_group_id = " . self::_getGid();
@@ -109,7 +104,6 @@ class CRM_Core_BAO_PaperSize extends CRM_Core_DAO_OptionValue {
    *
    * @return array
    *   (reference)   Paper Size list
-   * @static
    */
   public static function &getList($namesOnly = FALSE) {
     static $list = array();
@@ -135,11 +129,8 @@ class CRM_Core_BAO_PaperSize extends CRM_Core_DAO_OptionValue {
   /**
    * Retrieve the default Paper Size values
    *
-   * @param NULL
-   *
    * @return array
    *   Name/value pairs containing the default Paper Size values.
-   * @static
    */
   public static function &getDefaultValues() {
     $params = array('is_active' => 1, 'is_default' => 1);
@@ -213,13 +204,12 @@ class CRM_Core_BAO_PaperSize extends CRM_Core_DAO_OptionValue {
    * @param null $default
    *
    * @return value
-   * @static
    */
   public static function getValue($field, &$values, $default = NULL) {
     if (array_key_exists($field, self::$optionValueFields)) {
       switch (self::$optionValueFields[$field]['type']) {
         case CRM_Utils_Type::T_INT:
-          return (int)CRM_Utils_Array::value($field, $values, $default);
+          return (int) CRM_Utils_Array::value($field, $values, $default);
 
         case CRM_Utils_Type::T_FLOAT:
           // Round float values to three decimal places and trim trailing zeros.
@@ -227,7 +217,7 @@ class CRM_Core_BAO_PaperSize extends CRM_Core_DAO_OptionValue {
           $f = sprintf('%05.3f', $values[$field]);
           $f = rtrim($f, '0');
           $f = rtrim($f, '.');
-          return (float)(empty($f) ? '0' : $f);
+          return (float) (empty($f) ? '0' : $f);
       }
       return CRM_Utils_Array::value($field, $values, $default);
     }
@@ -244,8 +234,7 @@ class CRM_Core_BAO_PaperSize extends CRM_Core_DAO_OptionValue {
    * @param array $values
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Core_DAO_OptionValue object
-   * @static
+   * @return CRM_Core_DAO_OptionValue
    */
   public static function retrieve(&$params, &$values) {
     $optionValue = new CRM_Core_DAO_OptionValue();
@@ -339,7 +328,6 @@ class CRM_Core_BAO_PaperSize extends CRM_Core_DAO_OptionValue {
    * @param int $id
    *   ID of the Paper Size to be deleted.
    *
-   * @static
    */
   public static function del($id) {
     if ($id) {