warning fixes
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Mon, 22 Jun 2015 13:30:11 +0000 (19:00 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Tue, 23 Jun 2015 12:51:47 +0000 (18:21 +0530)
CRM/Contribute/BAO/Contribution.php

index 392186e176e4edd0ca3c5552ca28dbaf410a3ca8..5f9f170d399f80f1a24905f79fcd785956a445b2 100644 (file)
@@ -3805,12 +3805,12 @@ WHERE con.id = {$contributionId}
   /**
    * Compute the stats values
    *
-   * @param stat either 'mode' or 'median'
-   * @param sql
-   * @param alias of civicrm_contribution
+   * @param $stat either 'mode' or 'median'
+   * @param $sql
+   * @param $alias of civicrm_contribution
    */
   public static function computeStats($stat, $sql, $alias = NULL) {
-    switch($stat) {
+    switch ($stat) {
       case 'mode':
         $modeDAO = CRM_Core_DAO::executeQuery($sql);
         while ($modeDAO->fetch()) {
@@ -3852,13 +3852,13 @@ WHERE con.id = {$contributionId}
             }
           }
           if ($even) {
-            $midValue = $midValue/2;
+            $midValue = $midValue / 2;
             $median[] = CRM_Utils_Money::format($midValue, $currency);
           }
         }
         return $median;
 
-      default :
+      default:
         return;
     }
   }