mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Minor fixes
This commit is contained in:
parent
394d3b327d
commit
a7b8845edb
@ -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();
|
||||
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user