mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Code clean up.
This commit is contained in:
@@ -115,7 +115,6 @@ class PiggyBank extends Model
|
||||
*/
|
||||
public function getNameAttribute($value)
|
||||
{
|
||||
|
||||
if ($this->encrypted) {
|
||||
return Crypt::decrypt($value);
|
||||
}
|
||||
@@ -156,7 +155,6 @@ class PiggyBank extends Model
|
||||
*/
|
||||
public function leftOnAccount(Carbon $date): string
|
||||
{
|
||||
|
||||
$balance = Steam::balanceIgnoreVirtual($this->account, $date);
|
||||
/** @var PiggyBank $p */
|
||||
foreach ($this->account->piggyBanks as $piggyBank) {
|
||||
@@ -166,7 +164,6 @@ class PiggyBank extends Model
|
||||
}
|
||||
|
||||
return $balance;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user