From 9d26671f05275055619960a66981201ed660bdd2 Mon Sep 17 00:00:00 2001 From: luz paz Date: Thu, 28 Jul 2022 07:11:38 -0400 Subject: Fix typos in apps/ subdirectory Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/` Signed-off-by: luz paz Signed-off-by: nextcloud-command --- apps/files_sharing/lib/Controller/ShareAPIController.php | 4 ++-- apps/files_sharing/lib/Controller/ShareController.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/files_sharing/lib/Controller') diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 59089390667..ebc910063ef 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -382,7 +382,7 @@ class ShareAPIController extends OCSController { return new DataResponse([$share]); } } catch (NotFoundException $e) { - // Fall trough + // Fall through } throw new OCSNotFoundException($this->l->t('Wrong share ID, share does not exist')); @@ -1219,7 +1219,7 @@ class ShareAPIController extends OCSController { if ($label !== null) { if (strlen($label) > 255) { - throw new OCSBadRequestException("Maxmimum label length is 255"); + throw new OCSBadRequestException("Maximum label length is 255"); } $share->setLabel($label); } diff --git a/apps/files_sharing/lib/Controller/ShareController.php b/apps/files_sharing/lib/Controller/ShareController.php index 87f143facd0..4a9ace47146 100644 --- a/apps/files_sharing/lib/Controller/ShareController.php +++ b/apps/files_sharing/lib/Controller/ShareController.php @@ -324,7 +324,7 @@ class ShareController extends AuthPublicShareController { * @return bool */ private function validateShare(\OCP\Share\IShare $share) { - // If the owner is disabled no access to the linke is granted + // If the owner is disabled no access to the link is granted $owner = $this->userManager->get($share->getShareOwner()); if ($owner === null || !$owner->isEnabled()) { return false; -- cgit v1.2.3