comment fixes
[civicrm-core.git] / CRM / Upgrade / Incremental / Base.php
index 7b8abadaa5741c3e35cfb217512ed3897dcda0a2..5b19b3b20c6c4368dceb93897c82e3f73714daba 100644 (file)
@@ -63,7 +63,6 @@ class CRM_Upgrade_Incremental_Base {
    *   alterable.
    * @param string $rev
    *   an intermediate version; note that setPostUpgradeMessage is called repeatedly with different $revs.
-   * @return void
    */
   public function setPostUpgradeMessage(&$postUpgradeMessage, $rev) {
   }
@@ -106,10 +105,12 @@ class CRM_Upgrade_Incremental_Base {
   /**
    * Remove a payment processor if not in use
    *
-   * @param $name
+   * @param CRM_Queue_TaskContext $ctx
+   * @param string $name
+   * @return bool
    * @throws \CiviCRM_API3_Exception
    */
-  public static function removePaymentProcessorType($name) {
+  public static function removePaymentProcessorType(CRM_Queue_TaskContext $ctx, $name) {
     $processors = civicrm_api3('PaymentProcessor', 'getcount', array('payment_processor_type_id' => $name));
     if (empty($processors['result'])) {
       $result = civicrm_api3('PaymentProcessorType', 'get', array(
@@ -120,6 +121,7 @@ class CRM_Upgrade_Incremental_Base {
         civicrm_api3('PaymentProcessorType', 'delete', array('id' => $result['id']));
       }
     }
+    return TRUE;
   }
 
 }