mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Code cleanup before release.
This commit is contained in:
@@ -218,7 +218,7 @@ trait AccountServiceTrait
|
||||
*/
|
||||
public function storeOpposingAccount(User $user, string $name): Account
|
||||
{
|
||||
$name = $name . ' initial balance';
|
||||
$name .= ' initial balance';
|
||||
Log::debug('Going to create an opening balance opposing account.');
|
||||
/** @var AccountFactory $factory */
|
||||
$factory = app(AccountFactory::class);
|
||||
|
||||
@@ -154,8 +154,8 @@ class TransactionUpdateService
|
||||
*/
|
||||
public function updateCategory(Transaction $transaction, string $category): Transaction
|
||||
{
|
||||
$category = $this->findCategory(0, $category);
|
||||
$this->setCategory($transaction, $category);
|
||||
$found = $this->findCategory(0, $category);
|
||||
$this->setCategory($transaction, $found);
|
||||
|
||||
return $transaction;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user