Merge pull request #5035 from TeNNoX/master
[civicrm-core.git] / CRM / Report / Utils / Get.php
index f0fd552db83fdc0b30df22d6154ae5c409a366c3..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,
@@ -121,6 +122,7 @@ class CRM_Report_Utils_Get {
       case 'nnll':
         $defaults["{$fieldName}_op"] = $fieldOP;
         break;
+
       case 'in':
       case 'notin':
       case 'mhas':
@@ -195,7 +197,9 @@ class CRM_Report_Utils_Get {
   public static function processChart(&$defaults) {
     $chartType = CRM_Utils_Array::value("charts", $_GET);
     if (in_array($chartType, array(
-      'barChart', 'pieChart'))) {
+      'barChart',
+      'pieChart',
+    ))) {
       $defaults["charts"] = $chartType;
     }
   }
@@ -229,8 +233,8 @@ class CRM_Report_Utils_Get {
     }
   }
 
-  //unset default filters
   /**
+   * unset default filters.
    * @param $defaults
    */
   public static function unsetFilters(&$defaults) {
@@ -303,4 +307,5 @@ class CRM_Report_Utils_Get {
       }
     }
   }
+
 }