diff --git a/app/Http/Controllers/SelfUpdateController.php b/app/Http/Controllers/SelfUpdateController.php index 325aa29c5b73..0f28dc8aaa1c 100644 --- a/app/Http/Controllers/SelfUpdateController.php +++ b/app/Http/Controllers/SelfUpdateController.php @@ -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(); diff --git a/app/PaymentDrivers/WePayPaymentDriver.php b/app/PaymentDrivers/WePayPaymentDriver.php index 748299e49e16..afd78b16ab79 100644 --- a/app/PaymentDrivers/WePayPaymentDriver.php +++ b/app/PaymentDrivers/WePayPaymentDriver.php @@ -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(