Code clean up.

This commit is contained in:
James Cole
2017-11-15 10:52:29 +01:00
parent aee17221eb
commit 649dca77f5
305 changed files with 1200 additions and 1600 deletions

View File

@@ -89,7 +89,6 @@ class PiggyBankRepetition extends Model
)
->where(
function (EloquentBuilder $q) use ($date) {
$q->where('targetdate', '>=', $date->format('Y-m-d 00:00:00'));
$q->orWhereNull('targetdate');
}
@@ -103,5 +102,4 @@ class PiggyBankRepetition extends Model
{
$this->attributes['currentamount'] = strval(round($value, 12));
}
}