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

@@ -251,10 +251,11 @@ trait AccountCollection
if (0 === $accountId) {
return false;
}
// in theory, this could lead to finding other users accounts.
/** @var Account|null $account */
$account = Account::find($accountId);
if(null === $account) {
/** @var null|Account $account */
$account = Account::find($accountId);
if (null === $account) {
continue;
}
$balance = Steam::finalAccountBalance($account, $transaction['date']);