chore: reformat code.

This commit is contained in:
James Cole
2023-06-21 12:34:58 +02:00
parent 8d87abde64
commit 3dcb35710b
799 changed files with 23319 additions and 22173 deletions

View File

@@ -57,8 +57,8 @@ class NetWorth implements NetWorthInterface
* This repeats for each currency the user has transactions in.
* Result of this method is cached.
*
* @param Collection $accounts
* @param Carbon $date
* @param Collection $accounts
* @param Carbon $date
*
* @return array
* @throws JsonException
@@ -129,9 +129,9 @@ class NetWorth implements NetWorthInterface
}
/**
* @param User|Authenticatable|null $user
* @param User|Authenticatable|null $user
*/
public function setUser(User|Authenticatable|null $user): void
public function setUser(User | Authenticatable | null $user): void
{
if (null === $user) {
return;

View File

@@ -47,24 +47,24 @@ interface NetWorthInterface
* This repeats for each currency the user has transactions in.
* Result of this method is cached.
*
* @param Collection $accounts
* @param Carbon $date
* @param Collection $accounts
* @param Carbon $date
* @return array
* @deprecated
*/
public function getNetWorthByCurrency(Collection $accounts, Carbon $date): array;
/**
* @param User|Authenticatable|null $user
* @param User|Authenticatable|null $user
*/
public function setUser(User|Authenticatable|null $user): void;
public function setUser(User | Authenticatable | null $user): void;
/**
* TODO move to repository
*
* Same as above but cleaner function with less dependencies.
*
* @param Carbon $date
* @param Carbon $date
*
* @return array
*/

View File

@@ -43,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
*/
@@ -65,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
*/
@@ -100,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
*/
@@ -140,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
*/
@@ -183,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
*/
@@ -229,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
*/

View File

@@ -35,9 +35,9 @@ interface PopupReportInterface
/**
* Get balances for budget.
*
* @param Budget $budget
* @param Account $account
* @param array $attributes
* @param Budget $budget
* @param Account $account
* @param array $attributes
*
* @return array
*/
@@ -46,8 +46,8 @@ interface PopupReportInterface
/**
* Get balances for transactions without a budget.
*
* @param Account $account
* @param array $attributes
* @param Account $account
* @param array $attributes
*
* @return array
*/
@@ -56,8 +56,8 @@ interface PopupReportInterface
/**
* Group by budget.
*
* @param Budget $budget
* @param array $attributes
* @param Budget $budget
* @param array $attributes
*
* @return array
*/
@@ -66,8 +66,8 @@ interface PopupReportInterface
/**
* Group by category.
*
* @param Category|null $category
* @param array $attributes
* @param Category|null $category
* @param array $attributes
*
* @return array
*/
@@ -76,8 +76,8 @@ interface PopupReportInterface
/**
* Do something with expense. Sorry, I am not very inspirational here.
*
* @param Account $account
* @param array $attributes
* @param Account $account
* @param array $attributes
*
* @return array
*/
@@ -86,8 +86,8 @@ interface PopupReportInterface
/**
* Do something with income. Sorry, I am not very inspirational here.
*
* @param Account $account
* @param array $attributes
* @param Account $account
* @param array $attributes
*
* @return array
*/

View File

@@ -44,7 +44,7 @@ class ReportHelper implements ReportHelperInterface
/**
* ReportHelper constructor.
*
* @param BudgetRepositoryInterface $budgetRepository
* @param BudgetRepositoryInterface $budgetRepository
*/
public function __construct(BudgetRepositoryInterface $budgetRepository)
{
@@ -57,9 +57,9 @@ class ReportHelper implements ReportHelperInterface
*
* Excludes bills which have not had a payment on the mentioned accounts.
*
* @param Carbon $start
* @param Carbon $end
* @param Collection $accounts
* @param Carbon $start
* @param Carbon $end
* @param Collection $accounts
*
* @return array
*/
@@ -113,7 +113,7 @@ class ReportHelper implements ReportHelperInterface
/**
* Generate a list of months for the report.
*
* @param Carbon $date
* @param Carbon $date
*
* @return array
*/

View File

@@ -37,9 +37,9 @@ interface ReportHelperInterface
*
* Excludes bills which have not had a payment on the mentioned accounts.
*
* @param Carbon $start
* @param Carbon $end
* @param Collection $accounts
* @param Carbon $start
* @param Carbon $end
* @param Collection $accounts
*
* @return array
*/
@@ -48,7 +48,7 @@ interface ReportHelperInterface
/**
* Generate a list of months.
*
* @param Carbon $date
* @param Carbon $date
*
* @return array
*/