mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 12:12:18 +00:00
Code cleanup
This commit is contained in:
@@ -74,7 +74,9 @@ class AddTag implements ActionInterface
|
||||
|
||||
return true;
|
||||
}
|
||||
Log::debug(sprintf('RuleAction AddTag fired but tag %d ("%s") was already added to journal %d.', $tag->id, $tag->tag, $journal['transaction_journal_id']));
|
||||
Log::debug(
|
||||
sprintf('RuleAction AddTag fired but tag %d ("%s") was already added to journal %d.', $tag->id, $tag->tag, $journal['transaction_journal_id'])
|
||||
);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
@@ -26,6 +26,7 @@ use FireflyIII\Models\RuleAction;
|
||||
use FireflyIII\User;
|
||||
use Log;
|
||||
use DB;
|
||||
|
||||
/**
|
||||
* Class RemoveTag.
|
||||
*/
|
||||
@@ -57,12 +58,14 @@ class RemoveTag implements ActionInterface
|
||||
Log::debug(sprintf('RuleAction RemoveTag removed tag #%d ("%s") from journal #%d.', $tag->id, $tag->tag, $journal['transaction_journal_id']));
|
||||
DB::table('tag_transaction_journal')
|
||||
->where('transaction_journal_id', $journal['transaction_journal_id'])
|
||||
->where('tag_id', $tag->id)
|
||||
->where('tag_id', $tag->id)
|
||||
->delete();
|
||||
|
||||
return true;
|
||||
}
|
||||
Log::debug(sprintf('RuleAction RemoveTag tried to remove tag "%s" from journal #%d but no such tag exists.', $name, $journal['transaction_journal_id']));
|
||||
Log::debug(
|
||||
sprintf('RuleAction RemoveTag tried to remove tag "%s" from journal #%d but no such tag exists.', $name, $journal['transaction_journal_id'])
|
||||
);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@@ -61,7 +61,12 @@ class SetNotes implements ActionInterface
|
||||
$dbNote->text = $this->action->action_value;
|
||||
$dbNote->save();
|
||||
|
||||
Log::debug(sprintf('RuleAction SetNotes changed the notes of journal #%d from "%s" to "%s".', $journal['transaction_journal_id'], $oldNotes, $this->action->action_value));
|
||||
Log::debug(
|
||||
sprintf(
|
||||
'RuleAction SetNotes changed the notes of journal #%d from "%s" to "%s".', $journal['transaction_journal_id'], $oldNotes,
|
||||
$this->action->action_value
|
||||
)
|
||||
);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user