Fix phpstan level 3!

This commit is contained in:
James Cole
2025-01-04 07:10:37 +01:00
parent cd296aa9ac
commit 2baac1a6d7
52 changed files with 113 additions and 113 deletions

View File

@@ -40,8 +40,6 @@ class AccountMeta extends Model
];
protected $fillable = ['account_id', 'name', 'data'];
/** @var string The table to store the data in */
protected $table = 'account_meta';
public function account(): BelongsTo

View File

@@ -41,7 +41,6 @@ class Configuration extends Model
'deleted_at' => 'datetime',
];
/** @var string The table to store the data in */
protected $table = 'configuration';
/**

View File

@@ -79,6 +79,7 @@ class Preference extends Model
$preference = $user->preferences()->where('id', (int) $value)->first();
}
if (null !== $preference) {
/** @var Preference $preference */
return $preference;
}
$default = config('firefly.default_preferences');
@@ -89,7 +90,6 @@ class Preference extends Model
$preference->user_id = (int) $user->id;
$preference->user_group_id = in_array($value, $items, true) ? $userGroupId : null;
$preference->save();
return $preference;
}
}

View File

@@ -63,7 +63,6 @@ class Recurrence extends Model
protected $fillable
= ['user_id', 'transaction_type_id', 'title', 'description', 'first_date', 'first_date_tz', 'repeat_until', 'repeat_until_tz', 'latest_date', 'latest_date_tz', 'repetitions', 'apply_rules', 'active'];
/** @var string The table to store the data in */
protected $table = 'recurrences';
/**

View File

@@ -48,7 +48,6 @@ class RecurrenceMeta extends Model
protected $fillable = ['recurrence_id', 'name', 'value'];
/** @var string The table to store the data in */
protected $table = 'recurrences_meta';
public function recurrence(): BelongsTo

View File

@@ -62,7 +62,6 @@ class RecurrenceRepetition extends Model
protected $fillable = ['recurrence_id', 'weekend', 'repetition_type', 'repetition_moment', 'repetition_skip'];
/** @var string The table to store the data in */
protected $table = 'recurrences_repetitions';
public function recurrence(): BelongsTo

View File

@@ -60,7 +60,6 @@ class RecurrenceTransaction extends Model
'description',
];
/** @var string The table to store the data in */
protected $table = 'recurrences_transactions';
public function destinationAccount(): BelongsTo

View File

@@ -48,7 +48,6 @@ class RecurrenceTransactionMeta extends Model
protected $fillable = ['rt_id', 'name', 'value'];
/** @var string The table to store the data in */
protected $table = 'rt_meta';
public function recurrenceTransaction(): BelongsTo

View File

@@ -42,7 +42,6 @@ class TransactionJournalLink extends Model
'updated_at' => 'datetime',
];
/** @var string The table to store the data in */
protected $table = 'journal_links';
/**

View File

@@ -45,7 +45,6 @@ class TransactionJournalMeta extends Model
protected $fillable = ['transaction_journal_id', 'name', 'data', 'hash'];
/** @var string The table to store the data in */
protected $table = 'journal_meta';
/**