diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2024-09-16 10:04:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-16 10:04:37 +0200 |
commit | 0a7b4b597e6dc6824f5ccedfe40ca4fd86dea07d (patch) | |
tree | b6843298d1f8478c16ce7a8e98c09b135491c133 /apps/files_sharing | |
parent | 54b162f10e436ad9a80c6fbf3ea97c50b5930826 (diff) | |
parent | c57e684e7b22a02c7017450d1fdaaec9afc83d62 (diff) | |
download | nextcloud-server-0a7b4b597e6dc6824f5ccedfe40ca4fd86dea07d.tar.gz nextcloud-server-0a7b4b597e6dc6824f5ccedfe40ca4fd86dea07d.zip |
Merge pull request #48042 from nextcloud/refactor/elvis
refactor: Use the elvis operator + fix: Handle null checks with the ?? operator
Diffstat (limited to 'apps/files_sharing')
-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 9d008170e68..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 ? $user : $this->uid; + $user = $user ?? $this->uid; $accepted = $accepted ? IShare::STATUS_ACCEPTED : IShare::STATUS_PENDING; $name = Filesystem::normalizePath('/' . $name); |