* Form object.
* @param array $paymentParams
* Array with payment related key.
- * value pairs
+ * value pairs
* @param array $premiumParams
* Array with premium related key.
- * value pairs
+ * value pairs
* @param int $contactID
* Contact id.
* @param int $contributionTypeId
*
* @throws CRM_Core_Exception
* @throws Exception
- * @return array associated array
+ * @return array
+ * associated array
*
- * @static
*/
- static function processConfirm(
+ public static function processConfirm(
&$form,
&$paymentParams,
&$premiumParams,
if ($component !== 'membership') {
CRM_Core_Error::displaySessionError($result);
CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/contribute/transact',
- "_qf_Main_display=true&qfKey={$form->_params['qfKey']}"
- ));
+ "_qf_Main_display=true&qfKey={$form->_params['qfKey']}"
+ ));
}
$membershipResult[1] = $result;
}
$form->_values['contribution_id'] = $contribution->id;
CRM_Contribute_BAO_ContributionPage::sendMail($contactID,
$form->_values, $contribution->is_test,
- FALSE, $fieldTypes
+ FALSE, $fieldTypes
);
}
}
return FALSE;
}
+
/**
* Get the contribution details by month
* of the year
* @param int $param
* Year.
*
- * @return array associated array
+ * @return array
+ * associated array
*
- * @static
*/
public static function contributionChartMonthly($param) {
if ($param) {
/**
* Get the contribution details by year
*
- * @return array associated array
+ * @return array
+ * associated array
*
- * @static
*/
public static function contributionChartYearly() {
$config = CRM_Core_Config::singleton();
if (!CRM_Utils_System::isNull($params['email'])) {
$params['email'] = array(
1 => array(
- 'email' => $params['email'],
+ 'email' => $params['email'],
'location_type_id' => $billingLocTypeId,
- ));
+ ),
+ );
}
if (isset($transaction['trxn_id'])) {
$type = strtolower($type);
if (!in_array($type, array(
- 'paypal', 'google', 'csv'))) {
+ 'paypal',
+ 'google',
+ 'csv',
+ ))
+ ) {
// return the params as is
return $apiParams;
}
// if this is a recurring contribution then process it first
if ($params['trxn_type'] == 'subscrpayment') {
// see if a recurring record already exists
- $recurring = new CRM_Contribute_BAO_ContributionRecur;
+ $recurring = new CRM_Contribute_BAO_ContributionRecur();
$recurring->processor_id = $params['processor_id'];
if (!$recurring->find(TRUE)) {
- $recurring = new CRM_Contribute_BAO_ContributionRecur;
+ $recurring = new CRM_Contribute_BAO_ContributionRecur();
$recurring->invoice_id = $params['invoice_id'];
$recurring->find(TRUE);
}
* @param float $taxRate
* Tax rate of selected financial account for field.
*
- * @return array array of tax amount
- *
- * @static
+ * @return array
+ * array of tax amount
*
*/
public static function calculateTaxAmount($amount, $taxRate) {