X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FPledgePayment.php;h=4301305a6640ab58f7a2c1fb2a8afddb942ea156;hb=67e7968f5bc73783ebc41857bade8ab167ef8112;hp=b4294fa1ca86c2929a156dfb660532eb24c03d44;hpb=daa46b94db74b842b7d7c6be293401672b637e7f;p=civicrm-core.git diff --git a/api/v3/PledgePayment.php b/api/v3/PledgePayment.php index b4294fa1ca..4301305a66 100644 --- a/api/v3/PledgePayment.php +++ b/api/v3/PledgePayment.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 5 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2017 | + | Copyright CiviCRM LLC (c) 2004-2019 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -61,7 +61,7 @@ function civicrm_api3_pledge_payment_create($params) { } $dao = CRM_Pledge_BAO_PledgePayment::add($paymentParams); - $result = array(); + $result = []; if (empty($dao->pledge_id)) { $dao->find(TRUE); } @@ -98,7 +98,7 @@ function _civicrm_api3_pledge_payment_create_spec(&$params) { function civicrm_api3_pledge_payment_delete($params) { if (CRM_Pledge_BAO_PledgePayment::del($params['id'])) { - return civicrm_api3_create_success(array('id' => $params['id']), $params, 'PledgePayment', 'delete'); + return civicrm_api3_create_success(['id' => $params['id']], $params, 'PledgePayment', 'delete'); } else { return civicrm_api3_create_error('Could not delete payment'); @@ -126,9 +126,9 @@ function civicrm_api3_pledge_payment_get($params) { * Modifiable list of fields allowed for the PledgePayment.get action. */ function civicrm_api3_pledge_payment_get_spec(&$params) { - $params['option.create_new'] = array( + $params['option.create_new'] = [ 'title' => "Create New", 'description' => "Create new field rather than update an unpaid payment", 'type' => CRM_Utils_Type::T_BOOLEAN, - ); + ]; }