From f4aa2644eeed29971d1eecb3d22bb0127e428141 Mon Sep 17 00:00:00 2001 From: John Molakvoæ Date: Tue, 3 Sep 2024 21:49:04 +0200 Subject: fix: adjust sharing controller exceptions case MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: F. E Noel Nfebe Co-authored-by: Ferdinand Thiessen Signed-off-by: John Molakvoæ --- lib/private/Share20/Manager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index a89c19920fa..391b77171a9 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -164,7 +164,7 @@ class Manager implements IManager { } elseif ($share->getShareType() === IShare::TYPE_SCIENCEMESH) { } else { // We cannot handle other types yet - throw new \InvalidArgumentException($this->l->t('unknown share type')); + throw new \InvalidArgumentException($this->l->t('Unknown share type')); } // Verify the initiator of the share is set @@ -1095,7 +1095,7 @@ class Manager implements IManager { public function getSharesInFolder($userId, Folder $node, $reshares = false, $shallow = true) { $providers = $this->factory->getAllProviders(); if (!$shallow) { - throw new \Exception($this->l->t('non-shallow getSharesInFolder is no longer supported')); + throw new \Exception('non-shallow getSharesInFolder is no longer supported'); } return array_reduce($providers, function ($shares, IShareProvider $provider) use ($userId, $node, $reshares) { -- cgit v1.2.3