destinationAccountList() as $account) { $toAccountName .= strtolower($account->name); } $search = strtolower($this->triggerValue); if ($toAccountName === $search) { Log::debug(sprintf('RuleTrigger ToAccountIs for journal #%d: "%s" is "%s", return true.', $journal->id, $toAccountName, $search)); return true; } Log::debug(sprintf('RuleTrigger ToAccountIs for journal #%d: "%s" is NOT "%s", return true.', $journal->id, $toAccountName, $search)); return false; } }