mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 09:22:33 +00:00
Reformat various code.
This commit is contained in:
@@ -115,7 +115,7 @@ class PiggyBank extends Model
|
||||
public static function routeBinder(string $value): PiggyBank
|
||||
{
|
||||
if (auth()->check()) {
|
||||
$piggyBankId = (int)$value;
|
||||
$piggyBankId = (int) $value;
|
||||
$piggyBank = self::where('piggy_banks.id', $piggyBankId)
|
||||
->leftJoin('accounts', 'accounts.id', '=', 'piggy_banks.account_id')
|
||||
->where('accounts.user_id', auth()->user()->id)->first(['piggy_banks.*']);
|
||||
@@ -186,6 +186,6 @@ class PiggyBank extends Model
|
||||
*/
|
||||
public function setTargetamountAttribute($value): void
|
||||
{
|
||||
$this->attributes['targetamount'] = (string)$value;
|
||||
$this->attributes['targetamount'] = (string) $value;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user