Some code cleanup

Signed-off-by: James Cole <thegrumpydictator@gmail.com>
This commit is contained in:
James Cole
2016-03-14 20:53:56 +01:00
parent 114dd5fc2a
commit ababdacf89
33 changed files with 73 additions and 71 deletions

View File

@@ -51,6 +51,7 @@ class AbstractTrigger
$self = new static;
$self->triggerValue = $triggerValue;
$self->stopProcessing = $stopProcessing;
return $self;
}

View File

@@ -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));