mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Big refactor to remove the deprecated transaction collector.
This commit is contained in:
@@ -233,7 +233,7 @@ trait RecurringTransactionTrait
|
||||
*/
|
||||
protected function updateTags(Recurrence $recurrence, array $tags): void
|
||||
{
|
||||
if (\count($tags) > 0) {
|
||||
if (count($tags) > 0) {
|
||||
/** @var RecurrenceMeta $entry */
|
||||
$entry = $recurrence->recurrenceMeta()->where('name', 'tags')->first();
|
||||
if (null === $entry) {
|
||||
@@ -242,7 +242,7 @@ trait RecurringTransactionTrait
|
||||
$entry->value = implode(',', $tags);
|
||||
$entry->save();
|
||||
}
|
||||
if (0 === \count($tags)) {
|
||||
if (0 === count($tags)) {
|
||||
// delete if present
|
||||
$recurrence->recurrenceMeta()->where('name', 'tags')->delete();
|
||||
}
|
||||
|
Reference in New Issue
Block a user