mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 20:16:22 +00:00
Some code cleanup
Signed-off-by: James Cole <thegrumpydictator@gmail.com>
This commit is contained in:
@@ -51,6 +51,7 @@ class AbstractTrigger
|
||||
$self = new static;
|
||||
$self->triggerValue = $triggerValue;
|
||||
$self->stopProcessing = $stopProcessing;
|
||||
|
||||
return $self;
|
||||
}
|
||||
|
||||
|
@@ -54,7 +54,7 @@ final class FromAccountStarts extends AbstractTrigger implements TriggerInterfac
|
||||
public function triggered(TransactionJournal $journal)
|
||||
{
|
||||
$name = $journal->source_account_name ?? strtolower(TransactionJournal::sourceAccount($journal)->name);
|
||||
$search = strtolower($this->triggerValue);
|
||||
$search = strtolower($this->triggerValue);
|
||||
|
||||
$part = substr($name, 0, strlen($search));
|
||||
|
||||
|
Reference in New Issue
Block a user