mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
chore: code cleanup.
This commit is contained in:
@@ -153,11 +153,11 @@ class Account extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BelongsTo
|
||||
* @return HasMany
|
||||
*/
|
||||
public function user(): BelongsTo
|
||||
public function accountMeta(): HasMany
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
return $this->hasMany(AccountMeta::class);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -191,14 +191,6 @@ class Account extends Model
|
||||
return $metaValue ? $metaValue->data : '';
|
||||
}
|
||||
|
||||
/**
|
||||
* @return HasMany
|
||||
*/
|
||||
public function accountMeta(): HasMany
|
||||
{
|
||||
return $this->hasMany(AccountMeta::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
@@ -282,6 +274,14 @@ class Account extends Model
|
||||
return $this->hasMany(Transaction::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BelongsTo
|
||||
*/
|
||||
public function user(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the virtual balance
|
||||
*
|
||||
|
Reference in New Issue
Block a user