Skip to content

Commit

Permalink
fix: Corrigido espaçamento nas funções do webhookHelpers e ajustado p…
Browse files Browse the repository at this point in the history
…arâmetro
  • Loading branch information
lucastgama committed Jun 18, 2024
1 parent 4e50b15 commit 69f12e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/Webhooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ private function handle_exception($event, $error, $data)
public function find_subscription_by_id($id_item)
{
// Webhooks Ids has "WC-" prefix
$sanitized_id = explode('WC-', $id_item);
$sanitized_id = explode('WC-', $id_item);
$subscription = wcs_get_subscription(end($sanitized_id));

if (empty($subscription))
Expand Down Expand Up @@ -561,7 +561,7 @@ public function update_next_payment($data)
$subscription->update_dates(array('next_payment' => $next_payment));
$subscription->update_dates(array('end_date' => $end_date));
}
}
}

private function format_date($date)
{
Expand Down

0 comments on commit 69f12e9

Please sign in to comment.