Skip to content

Commit

Permalink
Fix PHP format
Browse files Browse the repository at this point in the history
  • Loading branch information
andykim committed Apr 27, 2022
1 parent 732cc19 commit 91e430a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/gateways/xendit/hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
* @return void
*/
add_hook('InvoiceCreation', 1, function ($vars) {
if($vars['status'] == 'Draft')
if ($vars['status'] == 'Draft') {
return;
}

$xenditRecurring = new Recurring();
$invoice = $xenditRecurring->getInvoice($vars['invoiceid']);
Expand Down

0 comments on commit 91e430a

Please sign in to comment.