Update reference to Steam

This commit is contained in:
Sander Dorigo
2025-12-17 08:43:39 +01:00
parent e8fe9db181
commit 486e0d5ed5
48 changed files with 150 additions and 148 deletions

View File

@@ -39,7 +39,7 @@ trait AmountCollection
{
$this->query->where(
static function (EloquentBuilder $q) use ($amount): void { // @phpstan-ignore-line
$q->where('source.amount', app('steam')->negative($amount));
$q->where('source.amount', \FireflyIII\Support\Facades\Steam::negative($amount));
}
);
@@ -50,7 +50,7 @@ trait AmountCollection
{
$this->query->where(
static function (EloquentBuilder $q) use ($amount): void { // @phpstan-ignore-line
$q->where('source.amount', '!=', app('steam')->negative($amount));
$q->where('source.amount', '!=', \FireflyIII\Support\Facades\Steam::negative($amount));
}
);
@@ -64,7 +64,7 @@ trait AmountCollection
{
$this->query->where(
static function (EloquentBuilder $q) use ($amount): void { // @phpstan-ignore-line
$q->where('destination.amount', '<=', app('steam')->positive($amount));
$q->where('destination.amount', '<=', \FireflyIII\Support\Facades\Steam::positive($amount));
}
);
@@ -78,7 +78,7 @@ trait AmountCollection
{
$this->query->where(
static function (EloquentBuilder $q) use ($amount): void { // @phpstan-ignore-line
$q->where('destination.amount', '>=', app('steam')->positive($amount));
$q->where('destination.amount', '>=', \FireflyIII\Support\Facades\Steam::positive($amount));
}
);
@@ -93,7 +93,7 @@ trait AmountCollection
$this->query->where(
static function (EloquentBuilder $q) use ($amount): void { // @phpstan-ignore-line
$q->whereNotNull('source.foreign_amount');
$q->where('source.foreign_amount', app('steam')->negative($amount));
$q->where('source.foreign_amount', \FireflyIII\Support\Facades\Steam::negative($amount));
}
);
@@ -108,7 +108,7 @@ trait AmountCollection
$this->query->where(
static function (EloquentBuilder $q) use ($amount): void { // @phpstan-ignore-line
$q->whereNull('source.foreign_amount');
$q->orWhere('source.foreign_amount', '!=', app('steam')->negative($amount));
$q->orWhere('source.foreign_amount', '!=', \FireflyIII\Support\Facades\Steam::negative($amount));
}
);
@@ -123,7 +123,7 @@ trait AmountCollection
$this->query->where(
static function (EloquentBuilder $q) use ($amount): void { // @phpstan-ignore-line
$q->whereNotNull('destination.foreign_amount');
$q->where('destination.foreign_amount', '<=', app('steam')->positive($amount));
$q->where('destination.foreign_amount', '<=', \FireflyIII\Support\Facades\Steam::positive($amount));
}
);
@@ -138,7 +138,7 @@ trait AmountCollection
$this->query->where(
static function (EloquentBuilder $q) use ($amount): void { // @phpstan-ignore-line
$q->whereNotNull('destination.foreign_amount');
$q->where('destination.foreign_amount', '>=', app('steam')->positive($amount));
$q->where('destination.foreign_amount', '>=', \FireflyIII\Support\Facades\Steam::positive($amount));
}
);