run phpcs

This commit is contained in:
James Cole
2025-01-05 07:31:26 +01:00
parent 0f69e0d672
commit c3ffd39450
29 changed files with 112 additions and 94 deletions

View File

@@ -174,7 +174,7 @@ class AccountTransformer extends AbstractTransformer
private function getBalanceDifference(Collection $accounts, Carbon $start, Carbon $end): void
{
if (config('app.fallback_locale') === 'en_US') {
if ('en_US' === config('app.fallback_locale')) {
throw new FireflyException('Used deprecated method, rethink this.');
}
// collect balances, start and end for both native and converted.

View File

@@ -115,7 +115,7 @@ class PiggyBankTransformer extends AbstractTransformer
// grab repetitions (for current amount):
$repetitions = PiggyBankRepetition::whereIn('piggy_bank_id', $piggyBanks)->get();
if (config('app.fallback_locale') === 'en_US') {
if ('en_US' === config('app.fallback_locale')) {
throw new FireflyException('[d] Piggy bank repetitions are EOL.');
}