mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-23 12:27:05 +00:00
Big refactor to remove the deprecated transaction collector.
This commit is contained in:
@@ -92,7 +92,7 @@ class ActionFactory
|
||||
*/
|
||||
protected static function getActionTypes(): array
|
||||
{
|
||||
if (0 === \count(self::$actionTypes)) {
|
||||
if (0 === count(self::$actionTypes)) {
|
||||
self::$actionTypes = Domain::getRuleActions();
|
||||
}
|
||||
|
||||
|
@@ -101,7 +101,7 @@ class TriggerFactory
|
||||
*/
|
||||
protected static function getTriggerTypes(): array
|
||||
{
|
||||
if (0 === \count(self::$triggerTypes)) {
|
||||
if (0 === count(self::$triggerTypes)) {
|
||||
self::$triggerTypes = Domain::getRuleTriggers();
|
||||
}
|
||||
|
||||
|
@@ -84,7 +84,7 @@ class TransactionMatcher
|
||||
public function findTransactionsByRule(): Collection
|
||||
{
|
||||
Log::debug('Now in findTransactionsByRule()');
|
||||
if (0 === \count($this->rule->ruleTriggers)) {
|
||||
if (0 === count($this->rule->ruleTriggers)) {
|
||||
Log::error('Rule has no triggers!');
|
||||
|
||||
return new Collection;
|
||||
@@ -113,7 +113,7 @@ class TransactionMatcher
|
||||
*/
|
||||
public function findTransactionsByTriggers(): Collection
|
||||
{
|
||||
if (0 === \count($this->triggers)) {
|
||||
if (0 === count($this->triggers)) {
|
||||
return new Collection;
|
||||
}
|
||||
|
||||
@@ -328,7 +328,7 @@ class TransactionMatcher
|
||||
|
||||
// Update counters
|
||||
++$page;
|
||||
$processed += \count($set);
|
||||
$processed += count($set);
|
||||
|
||||
Log::debug(sprintf('Page is now %d, processed is %d', $page, $processed));
|
||||
|
||||
|
Reference in New Issue
Block a user