mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 22:21:42 +00:00
Code cleanup for scrutinizer.
This commit is contained in:
@@ -257,4 +257,11 @@ trait FindAccountsTrait
|
||||
|
||||
return $account;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $data
|
||||
*
|
||||
* @return Account
|
||||
*/
|
||||
abstract protected function storeAccount(array $data): Account;
|
||||
}
|
||||
|
||||
@@ -487,7 +487,7 @@ class BillRepository implements BillRepositoryInterface
|
||||
$wordMatch = $this->doWordMatch($matches, $description);
|
||||
$amountMatch = $this->doAmountMatch($journal->amountPositive(), $bill->amount_min, $bill->amount_max);
|
||||
|
||||
// If both, update!
|
||||
// when both, update!
|
||||
if ($wordMatch && $amountMatch) {
|
||||
$journal->bill()->associate($bill);
|
||||
$journal->save();
|
||||
|
||||
@@ -210,7 +210,7 @@ interface BudgetRepositoryInterface
|
||||
* @param Budget $budget
|
||||
* @param Carbon $start
|
||||
* @param Carbon $end
|
||||
* @param int $amount
|
||||
* @param string $amount
|
||||
*
|
||||
* @return BudgetLimit
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user