mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 08:21:34 +02:00
Updated static analysis
This commit is contained in:
parent
cd7d78d20b
commit
b4a682df52
@ -38,13 +38,13 @@ class VersionCheck implements ShouldQueue
|
||||
$version_file = trim(@file_get_contents(config('ninja.version_url')));
|
||||
|
||||
if (Ninja::isSelfHost() && $version_file) {
|
||||
/** @var \App\Models\Account $account **/
|
||||
Account::whereNotNull('id')->update(['latest_version' => $version_file]);
|
||||
Account::query()->whereNotNull('id')->update(['latest_version' => $version_file]);
|
||||
}
|
||||
|
||||
if (Ninja::isSelfHost()) {
|
||||
nlog("latest version = {$version_file}");
|
||||
|
||||
/** @var \App\Models\Account $account **/
|
||||
$account = Account::first();
|
||||
|
||||
if (! $account) {
|
||||
|
@ -71,13 +71,12 @@ class WebhookSingle implements ShouldQueue
|
||||
/**
|
||||
* Execute the job.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
MultiDB::setDb($this->db);
|
||||
|
||||
$subscription = Webhook::with('company')->find($this->subscription_id);
|
||||
$subscription = Webhook::query()->with('company')->find($this->subscription_id);
|
||||
|
||||
if ($subscription) {
|
||||
// nlog("firing event ID {$subscription->event_id} company_id {$subscription->company_id}");
|
||||
|
1
app/Jobs/Vendor/CreatePurchaseOrderPdf.php
vendored
1
app/Jobs/Vendor/CreatePurchaseOrderPdf.php
vendored
@ -124,6 +124,7 @@ class CreatePurchaseOrderPdf implements ShouldQueue
|
||||
|
||||
/* Catch all in case migration doesn't pass back a valid design */
|
||||
if (!$design) {
|
||||
/** @var \App\Models\Design $design */
|
||||
$design = Design::find(2);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user