mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-10 04:21:20 +00:00
First part of a large code cleanup commit.
This commit is contained in:
@@ -68,7 +68,7 @@ final class NotesAny extends AbstractTrigger implements TriggerInterface
|
||||
$text = $note->text;
|
||||
}
|
||||
|
||||
if (\strlen($text) > 0) {
|
||||
if ('' !== $text) {
|
||||
Log::debug(sprintf('RuleTrigger NotesEmpty for journal #%d: strlen > 0, return true.', $journal->id));
|
||||
|
||||
return true;
|
||||
|
||||
@@ -75,7 +75,7 @@ final class NotesAre extends AbstractTrigger implements TriggerInterface
|
||||
}
|
||||
$search = strtolower($this->triggerValue);
|
||||
|
||||
if ($text === $search && \strlen($text) > 0) {
|
||||
if ($text === $search && '' != $text) {
|
||||
Log::debug(sprintf('RuleTrigger NotesAre for journal #%d: "%s" is "%s", return true.', $journal->id, $text, $search));
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user