mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +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.order', 'ASC')
|
||||||
->orderBy('transaction_journals.id', 'DESC')
|
->orderBy('transaction_journals.id', 'DESC')
|
||||||
->orderBy('transaction_journals.description', 'DESC')
|
->orderBy('transaction_journals.description', 'DESC')
|
||||||
->orderBy('source.amount', 'DESC');
|
->orderBy('source.amount', 'DESC')
|
||||||
|
;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -68,7 +68,7 @@ class TransactionGroupTransformer extends AbstractTransformer
|
|||||||
{
|
{
|
||||||
$collectForObjects = false;
|
$collectForObjects = false;
|
||||||
|
|
||||||
/** @var array $object */
|
/** @var array|TransactionGroup $object */
|
||||||
foreach ($objects as $object) {
|
foreach ($objects as $object) {
|
||||||
if (is_array($object)) {
|
if (is_array($object)) {
|
||||||
$this->collectForArray($object);
|
$this->collectForArray($object);
|
||||||
@@ -147,6 +147,11 @@ class TransactionGroupTransformer extends AbstractTransformer
|
|||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @throws FireflyException
|
||||||
|
*
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
*/
|
||||||
private function transformJournal(TransactionJournal $journal): array
|
private function transformJournal(TransactionJournal $journal): array
|
||||||
{
|
{
|
||||||
$id = $journal->id;
|
$id = $journal->id;
|
||||||
|
Reference in New Issue
Block a user