mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Small code cleanup.
This commit is contained in:
@@ -60,7 +60,7 @@ final class AmountExactly extends AbstractTrigger implements TriggerInterface
|
||||
{
|
||||
$amount = $journal->destination_amount ?? TransactionJournal::amountPositive($journal);
|
||||
$compare = $this->triggerValue;
|
||||
$result = bccomp($amount, $compare, 4);
|
||||
$result = bccomp($amount, $compare);
|
||||
if ($result === 0) {
|
||||
Log::debug(sprintf('RuleTrigger AmountExactly for journal #%d: %d matches %d exactly, so return true', $journal->id, $amount, $compare));
|
||||
|
||||
|
@@ -60,7 +60,7 @@ final class AmountLess extends AbstractTrigger implements TriggerInterface
|
||||
{
|
||||
$amount = $journal->destination_amount ?? TransactionJournal::amountPositive($journal);
|
||||
$compare = $this->triggerValue;
|
||||
$result = bccomp($amount, $compare, 4);
|
||||
$result = bccomp($amount, $compare);
|
||||
if ($result === -1) {
|
||||
Log::debug(sprintf('RuleTrigger AmountLess for journal #%d: %d is less than %d, so return true', $journal->id, $amount, $compare));
|
||||
|
||||
|
@@ -66,7 +66,7 @@ final class AmountMore extends AbstractTrigger implements TriggerInterface
|
||||
{
|
||||
$amount = $journal->destination_amount ?? TransactionJournal::amountPositive($journal);
|
||||
$compare = $this->triggerValue;
|
||||
$result = bccomp($amount, $compare, 4);
|
||||
$result = bccomp($amount, $compare);
|
||||
if ($result === 1) {
|
||||
Log::debug(sprintf('RuleTrigger AmountMore for journal #%d: %d is more than %d, so return true', $journal->id, $amount, $compare));
|
||||
|
||||
|
Reference in New Issue
Block a user