Remove unused line item variable from signature
authorEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 19 Jun 2023 02:56:33 +0000 (14:56 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 19 Jun 2023 02:56:33 +0000 (14:56 +1200)
CRM/Price/BAO/LineItem.php

index e48adf5d4d4f571fd8f2adc58b73414473142ac3..2e9d4e2fa51e9ba49519772a691f3f51722c1682 100644 (file)
@@ -618,7 +618,6 @@ WHERE li.contribution_id = %1";
    * @param int $entity
    * @param int $contributionId
    * @param $feeBlock
-   * @param array $lineItems
    *
    * @throws \CRM_Core_Exception
    */
@@ -627,10 +626,9 @@ WHERE li.contribution_id = %1";
     $entityID,
     $entity,
     $contributionId,
-    $feeBlock,
-    $lineItems
+    $feeBlock
   ) {
-    $entityTable = "civicrm_" . $entity;
+    $entityTable = 'civicrm_' . $entity;
     $newLineItems = [];
     CRM_Price_BAO_PriceSet::processAmount($feeBlock,
       $params, $newLineItems