Skip to content

Commit

Permalink
Fixed PHPDoc arrays in extension/payment/divido controller
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCartpenter committed May 8, 2024
1 parent 55c58ee commit 5007729
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions upload/catalog/controller/extension/payment/divido.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ControllerExtensionPaymentDivido extends Controller {
public const STATUS_ACCEPTED = 'ACCEPTED', STATUS_ACTION_LENDER = 'ACTION-LENDER', STATUS_CANCELED = 'CANCELED', STATUS_COMPLETED = 'COMPLETED', STATUS_DEPOSIT_PAID = 'DEPOSIT-PAID', STATUS_DECLINED = 'DECLINED', STATUS_DEFERRED = 'DEFERRED', STATUS_REFERRED = 'REFERRED', STATUS_FULFILLED = 'FULFILLED', STATUS_SIGNED = 'SIGNED';

/**
* @var array
* @param array<string, int> $status_id
*/
private array $status_id = [
self::STATUS_ACCEPTED => 1,
Expand All @@ -22,8 +22,9 @@ class ControllerExtensionPaymentDivido extends Controller {
self::STATUS_FULFILLED => 1,
self::STATUS_SIGNED => 2,
];

/**
* @var array
* @param array<string, string> $history_messages
*/
private array $history_messages = [
self::STATUS_ACCEPTED => 'Credit request accepted',
Expand Down Expand Up @@ -72,7 +73,6 @@ public function index(): string {
}

$plans_ids = array_map(fn ($plan) => $plan->id, $plans);

$plans_ids = array_unique($plans_ids);
$plans_list = implode(',', $plans_ids);

Expand Down

0 comments on commit 5007729

Please sign in to comment.