Minor fixes

This commit is contained in:
David Bomba 2022-04-20 10:22:19 +10:00
parent 394d3b327d
commit a7b8845edb
2 changed files with 1 additions and 4 deletions

View File

@ -111,9 +111,6 @@ class SelfUpdateController extends BaseController
copy($this->getDownloadUrl(), storage_path('app/invoiceninja.zip'));
// $contents = file_get_contents($this->getDownloadUrl());
// Storage::disk('local')->put('invoiceninja.zip', $contents);
$file = Storage::disk('local')->path('invoiceninja.zip');
$zipFile = new \PhpZip\ZipFile();

View File

@ -191,7 +191,7 @@ class WePayPaymentDriver extends BaseDriver
if ($objectType == 'credit_card') {
$payment_method = ClientGatewayToken::where('token', $objectId)->first();
if (! $paymentMethod)
if (! $payment_method)
throw new \Exception('Unknown payment method');
$source = $this->wepay->request('credit_card', array(