Reformat various code.

This commit is contained in:
James Cole
2022-03-29 15:10:05 +02:00
parent 60786461a9
commit 123693096c
134 changed files with 336 additions and 141 deletions

View File

@@ -442,6 +442,7 @@ class AccountRepository implements AccountRepositoryInterface
* @return Account|null
*
* @throws FireflyException
* @throws JsonException
*/
public function getReconciliation(Account $account): ?Account
{
@@ -754,6 +755,7 @@ class AccountRepository implements AccountRepositoryInterface
*
* @return Account
* @throws FireflyException
* @throws JsonException
*/
public function store(array $data): Account
{
@@ -770,7 +772,6 @@ class AccountRepository implements AccountRepositoryInterface
*
* @return Account
* @throws FireflyException
* @throws JsonException
*/
public function update(Account $account, array $data): Account
{

View File

@@ -45,6 +45,8 @@ class AccountTasker implements AccountTaskerInterface
* @param Carbon $end
*
* @return array
* @throws \FireflyIII\Exceptions\FireflyException
* @throws \JsonException
*/
public function getAccountReport(Collection $accounts, Carbon $start, Carbon $end): array
{
@@ -150,6 +152,8 @@ class AccountTasker implements AccountTaskerInterface
* @param array $array
*
* @return array
* @throws \FireflyIII\Exceptions\FireflyException
* @throws \JsonException
*/
private function groupExpenseByDestination(array $array): array
{
@@ -243,6 +247,8 @@ class AccountTasker implements AccountTaskerInterface
* @param array $array
*
* @return array
* @throws \FireflyIII\Exceptions\FireflyException
* @throws \JsonException
*/
private function groupIncomeBySource(array $array): array
{

View File

@@ -358,6 +358,7 @@ class BillRepository implements BillRepositoryInterface
* @param Carbon $end
*
* @return Collection
* @throws JsonException
*/
public function getPayDatesInRange(Bill $bill, Carbon $start, Carbon $end): Collection
{
@@ -393,7 +394,6 @@ class BillRepository implements BillRepositoryInterface
* @param Carbon $date
*
* @return Carbon
* @throws JsonException
*/
public function nextDateMatch(Bill $bill, Carbon $date): Carbon
{

View File

@@ -304,6 +304,7 @@ class BudgetLimitRepository implements BudgetLimitRepositoryInterface
*
* @return BudgetLimit
* @throws FireflyException
* @throws \JsonException
*/
public function store(array $data): BudgetLimit
{
@@ -352,6 +353,8 @@ class BudgetLimitRepository implements BudgetLimitRepositoryInterface
* @param array $data
*
* @return BudgetLimit
* @throws FireflyException
* @throws \JsonException
*/
public function update(BudgetLimit $budgetLimit, array $data): BudgetLimit
{

View File

@@ -335,6 +335,7 @@ class BudgetRepository implements BudgetRepositoryInterface
*
* @return Budget
* @throws FireflyException
* @throws \JsonException
*/
public function store(array $data): Budget
{
@@ -549,6 +550,8 @@ class BudgetRepository implements BudgetRepositoryInterface
/**
* @param Budget $budget
* @param array $data
* @throws FireflyException
* @throws \JsonException
*/
private function updateAutoBudget(Budget $budget, array $data): void
{

View File

@@ -273,6 +273,8 @@ class CurrencyRepository implements CurrencyRepositoryInterface
* @param string|null $currencyCode
*
* @return TransactionCurrency
* @throws FireflyException
* @throws \JsonException
*/
public function findCurrency(?int $currencyId, ?string $currencyCode): TransactionCurrency
{

View File

@@ -118,7 +118,6 @@ class JournalCLIRepository implements JournalCLIRepositoryInterface
* @param string $field
*
* @return null|Carbon
* @throws JsonException
*/
public function getMetaDate(TransactionJournal $journal, string $field): ?Carbon
{
@@ -162,7 +161,6 @@ class JournalCLIRepository implements JournalCLIRepositoryInterface
* @param string $field
*
* @return null|string
* @throws JsonException
*/
public function getMetaField(TransactionJournal $journal, string $field): ?string
{

View File

@@ -130,7 +130,6 @@ class JournalRepository implements JournalRepositoryInterface
* @param TransactionJournal $journal
*
* @return string
* @throws JsonException
*/
public function getJournalTotal(TransactionJournal $journal): string
{
@@ -187,7 +186,6 @@ class JournalRepository implements JournalRepositoryInterface
* @param string $field
*
* @return null|Carbon
* @throws JsonException
*/
public function getMetaDateById(int $journalId, string $field): ?Carbon
{

View File

@@ -173,7 +173,8 @@ class PiggyBankRepository implements PiggyBankRepositoryInterface
* @param TransactionJournal $journal
*
* @return string
*
* @throws \FireflyIII\Exceptions\FireflyException
* @throws \JsonException
*/
public function getExactAmount(PiggyBank $piggyBank, PiggyBankRepetition $repetition, TransactionJournal $journal): string
{
@@ -357,6 +358,7 @@ class PiggyBankRepository implements PiggyBankRepositoryInterface
* @param Carbon $date
*
* @return string
* @throws \JsonException
*/
public function leftOnAccount(PiggyBank $piggyBank, Carbon $date): string
{

View File

@@ -416,9 +416,9 @@ class RuleRepository implements RuleRepositoryInterface
* @param Rule $rule
* @param array $data
*
* @return bool
* @return void
*/
private function storeTriggers(Rule $rule, array $data): bool
private function storeTriggers(Rule $rule, array $data): void
{
$order = 1;
foreach ($data['triggers'] as $trigger) {
@@ -437,7 +437,6 @@ class RuleRepository implements RuleRepositoryInterface
++$order;
}
return true;
}
/**
@@ -464,9 +463,9 @@ class RuleRepository implements RuleRepositoryInterface
* @param Rule $rule
* @param array $data
*
* @return bool
* @return void
*/
private function storeActions(Rule $rule, array $data): bool
private function storeActions(Rule $rule, array $data): void
{
$order = 1;
foreach ($data['actions'] as $action) {
@@ -484,7 +483,6 @@ class RuleRepository implements RuleRepositoryInterface
++$order;
}
return true;
}
/**

View File

@@ -116,6 +116,8 @@ class OperationsRepository implements OperationsRepositoryInterface
/**
* @return Collection
* @throws \Psr\Container\ContainerExceptionInterface
* @throws \Psr\Container\NotFoundExceptionInterface
*/
private function getTags(): Collection
{

View File

@@ -384,6 +384,7 @@ class TransactionGroupRepository implements TransactionGroupRepositoryInterface
*
* @return array
* @throws FireflyException
* @throws \JsonException
*/
public function getPiggyEvents(TransactionGroup $group): array
{