APIWrapper: Make mapDonation()
static becauts it's called static
This commit is contained in:
parent
bcd2b448d2
commit
db1ab69138
1 changed files with 4 additions and 4 deletions
|
@ -103,12 +103,12 @@ class CRM_TwingleCampaign_Utils_APIWrapper {
|
||||||
* the de.systopia.twingle extension can include the campaign into the
|
* the de.systopia.twingle extension can include the campaign into the
|
||||||
* contribution which it will create.
|
* contribution which it will create.
|
||||||
*
|
*
|
||||||
* @param $apiRequest
|
* @param array $apiRequest
|
||||||
* @param $callsame
|
* @param callable $callsame
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function mapDonation($apiRequest, $callsame) {
|
public static function mapDonation(array $apiRequest, callable $callsame) {
|
||||||
|
|
||||||
if (array_key_exists(
|
if (array_key_exists(
|
||||||
'campaign_id',
|
'campaign_id',
|
||||||
|
@ -207,4 +207,4 @@ class CRM_TwingleCampaign_Utils_APIWrapper {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue