mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Use PSR-12 code style
This commit is contained in:
@@ -131,8 +131,7 @@ class AccountTransformer extends AbstractTransformer
|
||||
|
||||
// get currencies:
|
||||
$accountIds = $objects->pluck('id')->toArray();
|
||||
$meta = AccountMeta
|
||||
::whereIn('account_id', $accountIds)
|
||||
$meta = AccountMeta::whereIn('account_id', $accountIds)
|
||||
->where('name', 'currency_id')
|
||||
->get(['account_meta.id', 'account_meta.account_id', 'account_meta.name', 'account_meta.data']);
|
||||
$currencyIds = $meta->pluck('data')->toArray();
|
||||
|
@@ -48,7 +48,7 @@ class BudgetLimitTransformer extends AbstractTransformer
|
||||
*/
|
||||
public function includeBudget(BudgetLimit $limit)
|
||||
{
|
||||
return $this->item($limit->budget, new BudgetTransformer, 'budgets');
|
||||
return $this->item($limit->budget, new BudgetTransformer(), 'budgets');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -47,7 +47,6 @@ class PreferenceTransformer extends AbstractTransformer
|
||||
'name' => $preference->name,
|
||||
'data' => $preference->data,
|
||||
];
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -260,7 +260,7 @@ class TransactionGroupTransformer extends AbstractTransformer
|
||||
*/
|
||||
private function date(?string $string): ?Carbon
|
||||
{
|
||||
if(null === $string) {
|
||||
if (null === $string) {
|
||||
return null;
|
||||
}
|
||||
return Carbon::createFromFormat('Y-m-d', $string);
|
||||
|
Reference in New Issue
Block a user