mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Strict comparisons.
This commit is contained in:
@@ -52,7 +52,7 @@ class RemoveTag implements ActionInterface
|
||||
/** @var Tag $tag */
|
||||
$tag = $journal->user->tags()->get()->filter(
|
||||
function (Tag $tag) use ($name) {
|
||||
return $tag->tag == $name;
|
||||
return $tag->tag === $name;
|
||||
}
|
||||
)->first();
|
||||
|
||||
|
@@ -56,7 +56,7 @@ class SetBudget implements ActionInterface
|
||||
$budgets = $repository->getActiveBudgets();
|
||||
$budget = $budgets->filter(
|
||||
function (Budget $current) use ($search) {
|
||||
return $current->name == $search;
|
||||
return $current->name === $search;
|
||||
}
|
||||
)->first();
|
||||
if (is_null($budget)) {
|
||||
@@ -65,7 +65,7 @@ class SetBudget implements ActionInterface
|
||||
return true;
|
||||
}
|
||||
|
||||
if ($journal->transactionType->type == TransactionType::TRANSFER) {
|
||||
if ($journal->transactionType->type === TransactionType::TRANSFER) {
|
||||
Log::debug(sprintf('RuleAction SetBudget could not set budget of journal #%d to "%s" because journal is a transfer.', $journal->id, $search));
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user