Code improvements

This commit is contained in:
2026-09-04 09:27:48 +02:00
parent d23e6c3914
commit 4bb64b0053
51 changed files with 30702 additions and 87 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ class UserRepository {
}
public function getCurrentUserDetails() : array {
$user = auth()->user();
$user = currentUser();
$return = [
'userId' => null,
@@ -31,7 +31,7 @@ class UserRepository {
'userAccountIban' => '',
];
if (null !== auth()->user()) {
if ($user !== null) {
$return = [
'userId' => $user->id,
'userName' => trim($user->getOfficialName()),