mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Big refactor to remove the deprecated transaction collector.
This commit is contained in:
@@ -325,7 +325,7 @@ class StageImportDataHandler
|
||||
/*
|
||||
* After the loop, check if Firefly III must loop again.
|
||||
*/
|
||||
Log::debug(sprintf('Count of result is now %d', \count($return)));
|
||||
Log::debug(sprintf('Count of result is now %d', count($return)));
|
||||
$count++;
|
||||
if (null === $olderId) {
|
||||
Log::debug('Older ID is NULL, so stop looping cause we are done!');
|
||||
@@ -351,7 +351,7 @@ class StageImportDataHandler
|
||||
// store newest and oldest tranasction ID to be used later:
|
||||
\Preferences::setForUser($this->importJob->user, sprintf('bunq-oldest-transaction-%d', $bunqAccountId), $oldestTransaction);
|
||||
\Preferences::setForUser($this->importJob->user, sprintf('bunq-newest-transaction-%d', $bunqAccountId), $newestTransaction);
|
||||
Log::info(sprintf('Downloaded and parsed %d transactions from bunq.', \count($return)));
|
||||
Log::info(sprintf('Downloaded and parsed %d transactions from bunq.', count($return)));
|
||||
|
||||
return $return;
|
||||
}
|
||||
@@ -428,7 +428,7 @@ class StageImportDataHandler
|
||||
/*
|
||||
* After the loop, check if Firefly III must loop again.
|
||||
*/
|
||||
Log::debug(sprintf('Count of result is now %d', \count($return)));
|
||||
Log::debug(sprintf('Count of result is now %d', count($return)));
|
||||
$count++;
|
||||
if (null === $newerId) {
|
||||
Log::debug('Newer ID is NULL, so stop looping cause we are done!');
|
||||
@@ -446,7 +446,7 @@ class StageImportDataHandler
|
||||
|
||||
// store newest tranasction ID to be used later:
|
||||
\Preferences::setForUser($this->importJob->user, sprintf('bunq-newest-transaction-%d', $bunqAccountId), $newestTransaction);
|
||||
Log::info(sprintf('Downloaded and parsed %d transactions from bunq.', \count($return)));
|
||||
Log::info(sprintf('Downloaded and parsed %d transactions from bunq.', count($return)));
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
@@ -145,7 +145,7 @@ class StageNewHandler
|
||||
}
|
||||
}
|
||||
}
|
||||
Log::info(sprintf('Found %d account(s) at bunq', \count($accounts)), $accounts);
|
||||
Log::info(sprintf('Found %d account(s) at bunq', count($accounts)), $accounts);
|
||||
|
||||
return $accounts;
|
||||
}
|
||||
@@ -224,7 +224,7 @@ class StageNewHandler
|
||||
Log::debug('Setting is not null.');
|
||||
}
|
||||
if (null !== $maj->getAlias()) {
|
||||
Log::debug(sprintf('Alias is not NULL. Count is %d', \count($maj->getAlias())));
|
||||
Log::debug(sprintf('Alias is not NULL. Count is %d', count($maj->getAlias())));
|
||||
/** @var Pointer $alias */
|
||||
foreach ($maj->getAlias() as $alias) {
|
||||
$return['aliases'][] = [
|
||||
@@ -239,7 +239,7 @@ class StageNewHandler
|
||||
}
|
||||
}
|
||||
$coOwners = $maj->getAllCoOwner() ?? [];
|
||||
Log::debug(sprintf('Count of getAllCoOwner is %d', \count($coOwners)));
|
||||
Log::debug(sprintf('Count of getAllCoOwner is %d', count($coOwners)));
|
||||
/** @var CoOwner $coOwner */
|
||||
foreach ($coOwners as $coOwner) {
|
||||
$alias = $coOwner->getAlias();
|
||||
|
Reference in New Issue
Block a user