Update translations and fix some code.

This commit is contained in:
James Cole
2023-02-22 19:54:19 +01:00
parent a18cd23154
commit 585cfddfd7
40 changed files with 343 additions and 328 deletions

View File

@@ -128,7 +128,7 @@ class AccountRepository implements AccountRepositoryInterface
$dbQuery->leftJoin('account_types', 'accounts.account_type_id', '=', 'account_types.id');
$dbQuery->whereIn('account_types.type', $types);
}
/** @var Account|null */
return $dbQuery->first(['accounts.*']);
}
@@ -147,6 +147,7 @@ class AccountRepository implements AccountRepositoryInterface
$query->whereIn('account_types.type', $types);
}
/** @var Account|null */
return $query->where('iban', $iban)->first(['accounts.*']);
}
@@ -330,6 +331,7 @@ class AccountRepository implements AccountRepositoryInterface
*/
public function getLocation(Account $account): ?Location
{
/** @var Location|null */
return $account->locations()->first();
}