mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 08:35:00 +00:00
Fix phpstan level 3!
This commit is contained in:
@@ -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
|
||||
|
@@ -41,7 +41,6 @@ class Configuration extends Model
|
||||
'deleted_at' => 'datetime',
|
||||
];
|
||||
|
||||
/** @var string The table to store the data in */
|
||||
protected $table = 'configuration';
|
||||
|
||||
/**
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
|
@@ -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';
|
||||
|
||||
/**
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -42,7 +42,6 @@ class TransactionJournalLink extends Model
|
||||
'updated_at' => 'datetime',
|
||||
];
|
||||
|
||||
/** @var string The table to store the data in */
|
||||
protected $table = 'journal_links';
|
||||
|
||||
/**
|
||||
|
@@ -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';
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user