From 23ce9a3a3da698cb55b837223a714a0a8d3a3657 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Mon, 22 Jun 2015 19:00:11 +0530 Subject: [PATCH] warning fixes --- CRM/Contribute/BAO/Contribution.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CRM/Contribute/BAO/Contribution.php b/CRM/Contribute/BAO/Contribution.php index 392186e176..5f9f170d39 100644 --- a/CRM/Contribute/BAO/Contribution.php +++ b/CRM/Contribute/BAO/Contribution.php @@ -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; } } -- 2.25.1