Various PSR12 code cleanup

This commit is contained in:
James Cole
2022-12-29 19:41:57 +01:00
parent 0022009dd5
commit dbf3e76ecc
340 changed files with 4079 additions and 3816 deletions

View File

@@ -1,4 +1,5 @@
<?php
/**
* PopupReport.php
* Copyright (c) 2019 james@firefly-iii.org
@@ -42,9 +43,9 @@ class PopupReport implements PopupReportInterface
/**
* Collect the transactions for one account and one budget.
*
* @param Budget $budget
* @param Account $account
* @param array $attributes
* @param Budget $budget
* @param Account $account
* @param array $attributes
*
* @return array
*/
@@ -64,8 +65,8 @@ class PopupReport implements PopupReportInterface
/**
* Collect the transactions for one account and no budget.
*
* @param Account $account
* @param array $attributes
* @param Account $account
* @param array $attributes
*
* @return array
*/
@@ -77,7 +78,7 @@ class PopupReport implements PopupReportInterface
if (null !== $currencyId) {
/** @var CurrencyRepositoryInterface $repos */
$repos = app(CurrencyRepositoryInterface::class);
$currency = $repos->find((int) $currencyId);
$currency = $repos->find((int)$currencyId);
}
/** @var GroupCollectorInterface $collector */
$collector = app(GroupCollectorInterface::class);
@@ -99,8 +100,8 @@ class PopupReport implements PopupReportInterface
/**
* Collect the transactions for a budget.
*
* @param Budget $budget
* @param array $attributes
* @param Budget $budget
* @param array $attributes
*
* @return array
*/
@@ -112,7 +113,7 @@ class PopupReport implements PopupReportInterface
if (null !== $currencyId) {
/** @var CurrencyRepositoryInterface $repos */
$repos = app(CurrencyRepositoryInterface::class);
$currency = $repos->find((int) $currencyId);
$currency = $repos->find((int)$currencyId);
}
/** @var GroupCollectorInterface $collector */
$collector = app(GroupCollectorInterface::class);
@@ -139,8 +140,8 @@ class PopupReport implements PopupReportInterface
/**
* Collect journals by a category.
*
* @param Category|null $category
* @param array $attributes
* @param Category|null $category
* @param array $attributes
*
* @return array
*/
@@ -152,7 +153,7 @@ class PopupReport implements PopupReportInterface
if (null !== $currencyId) {
/** @var CurrencyRepositoryInterface $repos */
$repos = app(CurrencyRepositoryInterface::class);
$currency = $repos->find((int) $currencyId);
$currency = $repos->find((int)$currencyId);
}
/** @var GroupCollectorInterface $collector */
@@ -182,8 +183,8 @@ class PopupReport implements PopupReportInterface
/**
* Group transactions by expense.
*
* @param Account $account
* @param array $attributes
* @param Account $account
* @param array $attributes
*
* @return array
*/
@@ -195,7 +196,7 @@ class PopupReport implements PopupReportInterface
if (null !== $currencyId) {
/** @var CurrencyRepositoryInterface $repos */
$repos = app(CurrencyRepositoryInterface::class);
$currency = $repos->find((int) $currencyId);
$currency = $repos->find((int)$currencyId);
}
/** @var JournalRepositoryInterface $repository */
@@ -228,8 +229,8 @@ class PopupReport implements PopupReportInterface
/**
* Collect transactions by income.
*
* @param Account $account
* @param array $attributes
* @param Account $account
* @param array $attributes
*
* @return array
*/