mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 22:21:42 +00:00
Various code cleanup [skip ci]
This commit is contained in:
@@ -23,7 +23,6 @@ declare(strict_types=1);
|
||||
|
||||
namespace FireflyIII\Services\Internal\Support;
|
||||
|
||||
use Exception;
|
||||
use FireflyIII\Factory\AccountFactory;
|
||||
use FireflyIII\Factory\AccountMetaFactory;
|
||||
use FireflyIII\Factory\TransactionFactory;
|
||||
@@ -255,6 +254,7 @@ trait AccountServiceTrait
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return true; // @codeCoverageIgnore
|
||||
}
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace FireflyIII\Services\Internal\Support;
|
||||
|
||||
use FireflyIII\Models\Bill;
|
||||
use FireflyIII\Models\Note;
|
||||
|
||||
|
||||
@@ -217,6 +217,7 @@ trait TransactionServiceTrait
|
||||
{
|
||||
if (is_null($budget)) {
|
||||
$transaction->budgets()->sync([]);
|
||||
|
||||
return;
|
||||
}
|
||||
$transaction->budgets()->sync([$budget->id]);
|
||||
@@ -233,6 +234,7 @@ trait TransactionServiceTrait
|
||||
{
|
||||
if (is_null($category)) {
|
||||
$transaction->categories()->sync([]);
|
||||
|
||||
return;
|
||||
}
|
||||
$transaction->categories()->sync([$category->id]);
|
||||
@@ -260,6 +262,7 @@ trait TransactionServiceTrait
|
||||
if (is_null($currency)) {
|
||||
$transaction->foreign_currency_id = null;
|
||||
$transaction->save();
|
||||
|
||||
return;
|
||||
}
|
||||
$transaction->foreign_currency_id = $currency->id;
|
||||
|
||||
Reference in New Issue
Block a user