Various code cleanup and fixed alignments.

This commit is contained in:
James Cole
2024-01-01 14:36:31 +01:00
parent d4488f041b
commit 30bbd0b3a4
6 changed files with 11 additions and 46 deletions

View File

@@ -681,7 +681,7 @@ trait MetaCollection
// this method adds a "postFilter" to the collector.
$list = $tags->pluck('tag')->toArray();
$list = array_map('strtolower', $list);
$filter = static function (array $object) use ($list): bool | array {
$filter = static function (array $object) use ($list): bool|array {
$return = $object;
unset($return['transactions']);
$return['transactions'] = [];
@@ -712,6 +712,7 @@ trait MetaCollection
if (true === $result) {
return $return;
}
return false;
};
$this->postFilters[] = $filter;

View File

@@ -561,7 +561,7 @@ class GroupCollector implements GroupCollectorInterface
if (0 !== count($journalIds)) {
// make all integers.
$integerIDs = array_map('intval', $journalIds);
Log::debug(sprintf('GroupCollector: setJournalIds: %s', join(', ', $integerIDs)));
Log::debug(sprintf('GroupCollector: setJournalIds: %s', implode(', ', $integerIDs)));
$this->query->whereIn('transaction_journals.id', $integerIDs);
}