-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
refactor: Use the elvis operator + fix: Handle null checks with the ?? operator #48042
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
Signed-off-by: Christoph Wurst <[email protected]>
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,7 +37,7 @@ public function logDetails(string $app, $message, int $level): array { | |
| $url = ($request->getRequestUri() !== '') ? $request->getRequestUri() : '--'; | ||
| $method = is_string($request->getMethod()) ? $request->getMethod() : '--'; | ||
| if ($this->config->getValue('installed', false)) { | ||
| $user = \OC_User::getUser() ? \OC_User::getUser() : '--'; | ||
| $user = \OC_User::getUser() ?: '--'; | ||
|
||
| } else { | ||
| $user = '--'; | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.