X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FPayment%2FPayPalIPN.php;h=a506ab3f29714c9e737bfb09833608f1164b38f9;hb=f544b9a786aed47624d73299c32c1a504b52eac8;hp=2628c678a885c8a90cd2196145fa1ad1cdb3b6dd;hpb=08ff628c6d369dc380b56d63a917f5e9f47adc7e;p=civicrm-core.git diff --git a/CRM/Core/Payment/PayPalIPN.php b/CRM/Core/Payment/PayPalIPN.php index 2628c678a8..a506ab3f29 100644 --- a/CRM/Core/Payment/PayPalIPN.php +++ b/CRM/Core/Payment/PayPalIPN.php @@ -72,18 +72,18 @@ class CRM_Core_Payment_PayPalIPN extends CRM_Core_Payment_BaseIPN { * @throws \CRM_Core_Exception * @throws \CiviCRM_API3_Exception */ - public function recur(&$input, &$ids, &$objects, $first) { + public function recur($input, $ids, $objects, $first) { if (!isset($input['txnType'])) { Civi::log()->debug('PayPalIPN: Could not find txn_type in input request'); echo "Failure: Invalid parameters

"; return; } - if ($input['txnType'] == 'subscr_payment' && - $input['paymentStatus'] != 'Completed' + if ($input['txnType'] === 'subscr_payment' && + $input['paymentStatus'] !== 'Completed' ) { Civi::log()->debug('PayPalIPN: Ignore all IPN payments that are not completed'); - echo "Failure: Invalid parameters

"; + echo 'Failure: Invalid parameters

'; return; }