Skip to content
Snippets Groups Projects
Commit 179ee3ec authored by mattwire's avatar mattwire
Browse files

Remove our version of CRM_Core_Payment::getAmount() as it was merged into core in 5.37

parent 7391b458
No related branches found
No related tags found
No related merge requests found
......@@ -140,17 +140,6 @@ trait CRM_Core_Payment_MJWTrait {
return NULL;
}
/**
* Get the amount as a float
* @param array $params
*
* @return mixed
*/
protected function getAmount($params = []) {
$params['amount'] = $params['amount'] ?? 0.0;
return filter_var($params['amount'], FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION);
}
/**
* Get the recurring contribution ID from parameters
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment