From ca67d98676a73692452ce93ee0cec0f5e929244e Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 17 Mar 2019 08:18:42 +0100 Subject: [PATCH] Fix some issues with importer #2166 --- app/Import/Storage/ImportArrayStorage.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/Import/Storage/ImportArrayStorage.php b/app/Import/Storage/ImportArrayStorage.php index 761d659188..19df205f90 100644 --- a/app/Import/Storage/ImportArrayStorage.php +++ b/app/Import/Storage/ImportArrayStorage.php @@ -575,21 +575,24 @@ class ImportArrayStorage ++$hits; Log::debug(sprintf('Source IDs are the same! (%d)', $hits)); } + Log::debug('Source IDs are not the same.'); unset($transferSourceIDs); // compare source and destination names - $transferSource = [(string)$transfer->account_name, (int)$transfer->opposing_account_name]; + $transferSource = [(string)$transfer->account_name, (string)$transfer->opposing_account_name]; sort($transferSource); /** @noinspection DisconnectedForeachInstructionInspection */ Log::debug('Comparing current transaction source+dest names', $currentSourceNames); Log::debug('.. with current transfer source+dest names', $transferSource); if ($currentSourceNames === $transferSource) { // @codeCoverageIgnoreStart - Log::debug(sprintf('Source names are the same! (%d)', $hits)); ++$hits; + Log::debug(sprintf('Source names are the same! (%d)', $hits)); // @codeCoverageIgnoreEnd } + Log::debug('Source names are not the same.'); $totalHits += $hits; + Log::debug(sprintf('Total hits is now %d, hits is %d', $totalHits, $hits)); if ($totalHits >= $requiredHits) { return true; }