Fixes for static analysis

This commit is contained in:
David Bomba 2023-08-23 15:03:48 +10:00
parent 17872a3158
commit 2f1968c899

View File

@ -394,8 +394,10 @@ class SquarePaymentDriver extends BaseDriver
//getsubscriptionid here
$subscription_id = $this->checkWebhooks();
if(!$subscription_id)
return nlog('No Subscription Found');
if(!$subscription_id){
nlog('No Subscription Found');
return;
}
$api_response = $this->square->getWebhookSubscriptionsApi()->testWebhookSubscription($subscription_id, $body);