mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-06 12:45:30 +00:00
Use PSR-12 code style
This commit is contained in:
@@ -42,7 +42,8 @@ use JsonException;
|
||||
*/
|
||||
class ExpenseReportController extends Controller
|
||||
{
|
||||
use AugumentData, TransactionCalculation;
|
||||
use AugumentData;
|
||||
use TransactionCalculation;
|
||||
|
||||
/** @var AccountRepositoryInterface The account repository */
|
||||
protected $accountRepository;
|
||||
@@ -82,7 +83,7 @@ class ExpenseReportController extends Controller
|
||||
*/
|
||||
public function mainChart(Collection $accounts, Collection $expense, Carbon $start, Carbon $end): JsonResponse
|
||||
{
|
||||
$cache = new CacheProperties;
|
||||
$cache = new CacheProperties();
|
||||
$cache->addProperty('chart.expense.report.main');
|
||||
$cache->addProperty($accounts);
|
||||
$cache->addProperty($expense);
|
||||
@@ -98,7 +99,7 @@ class ExpenseReportController extends Controller
|
||||
$currentStart = clone $start;
|
||||
$combined = $this->combineAccounts($expense);
|
||||
// make "all" set:
|
||||
$all = new Collection;
|
||||
$all = new Collection();
|
||||
foreach ($combined as $name => $combination) {
|
||||
$all = $all->merge($combination);
|
||||
}
|
||||
|
Reference in New Issue
Block a user