mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-08-29 09:16:15 +00:00
Fix phpstan issue.
This commit is contained in:
@@ -1055,6 +1055,7 @@ class GroupCollector implements GroupCollectorInterface
|
||||
->orderBy('transaction_journals.order', 'ASC')
|
||||
->orderBy('transaction_journals.id', 'DESC')
|
||||
->orderBy('transaction_journals.description', 'DESC')
|
||||
->orderBy('source.amount', 'DESC');
|
||||
->orderBy('source.amount', 'DESC')
|
||||
;
|
||||
}
|
||||
}
|
||||
|
@@ -68,7 +68,7 @@ class TransactionGroupTransformer extends AbstractTransformer
|
||||
{
|
||||
$collectForObjects = false;
|
||||
|
||||
/** @var array $object */
|
||||
/** @var array|TransactionGroup $object */
|
||||
foreach ($objects as $object) {
|
||||
if (is_array($object)) {
|
||||
$this->collectForArray($object);
|
||||
@@ -147,6 +147,11 @@ class TransactionGroupTransformer extends AbstractTransformer
|
||||
return $return;
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws FireflyException
|
||||
*
|
||||
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||
*/
|
||||
private function transformJournal(TransactionJournal $journal): array
|
||||
{
|
||||
$id = $journal->id;
|
||||
|
Reference in New Issue
Block a user