diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2024-09-15 21:50:11 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2024-09-15 21:50:11 +0200 |
commit | c57e684e7b22a02c7017450d1fdaaec9afc83d62 (patch) | |
tree | e74b38562aaef75590dc5fc2c8e8eb749da7248e /apps/files_sharing/lib | |
parent | 614f9ec0a2fd3c6752e7da2a59063df09d3bdbff (diff) | |
download | nextcloud-server-c57e684e7b22a02c7017450d1fdaaec9afc83d62.tar.gz nextcloud-server-c57e684e7b22a02c7017450d1fdaaec9afc83d62.zip |
fix: Handle null checks with the ?? operatorrefactor/elvis
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r-- | apps/files_sharing/lib/External/Manager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/External/Manager.php b/apps/files_sharing/lib/External/Manager.php index 98edd78df8a..a3226e9f3dd 100644 --- a/apps/files_sharing/lib/External/Manager.php +++ b/apps/files_sharing/lib/External/Manager.php @@ -119,7 +119,7 @@ class Manager { * @throws \Doctrine\DBAL\Exception */ public function addShare($remote, $token, $password, $name, $owner, $shareType, $accepted = false, $user = null, $remoteId = '', $parent = -1) { - $user = $user ?: $this->uid; + $user = $user ?? $this->uid; $accepted = $accepted ? IShare::STATUS_ACCEPTED : IShare::STATUS_PENDING; $name = Filesystem::normalizePath('/' . $name); |