Merge pull request #5035 from TeNNoX/master
[civicrm-core.git] / CRM / Report / Utils / Get.php
index 17cbbce44e8df5b673d0a93ee8bad68d3dd38733..f5cbafe0d83f149a06a0e95cd8062b8a208e43c8 100644 (file)
@@ -1,5 +1,4 @@
 <?php
-
 /*
  +--------------------------------------------------------------------+
  | CiviCRM version 4.6                                                |
@@ -24,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -56,6 +55,8 @@ class CRM_Report_Utils_Get {
    * @param string $fieldName
    * @param $field
    * @param $defaults
+   *
+   * @return bool
    */
   public static function dateParam($fieldName, &$field, &$defaults) {
     // type = 12 (datetime) is not recognized by Utils_Type::escape() method,
@@ -197,7 +198,7 @@ class CRM_Report_Utils_Get {
     $chartType = CRM_Utils_Array::value("charts", $_GET);
     if (in_array($chartType, array(
       'barChart',
-      'pieChart'
+      'pieChart',
     ))) {
       $defaults["charts"] = $chartType;
     }
@@ -233,7 +234,7 @@ class CRM_Report_Utils_Get {
   }
 
   /**
-   * unset default filters
+   * unset default filters.
    * @param $defaults
    */
   public static function unsetFilters(&$defaults) {
@@ -306,4 +307,5 @@ class CRM_Report_Utils_Get {
       }
     }
   }
+
 }