diff --git a/apps/cloud_federation_api/README.md b/apps/cloud_federation_api/README.md index 34b5045eaf9af..d10071c87583e 100644 --- a/apps/cloud_federation_api/README.md +++ b/apps/cloud_federation_api/README.md @@ -1,2 +1,2 @@ # cloud_federation_api -The cloud federation API allows to share information like files, contacts, calendars, incoming calls, etc accross Nextcloud instances +The cloud federation API allows to share information like files, contacts, calendars, incoming calls, etc across Nextcloud instances diff --git a/apps/comments/src/activitytabviewplugin.js b/apps/comments/src/activitytabviewplugin.js index 5c1daba1c1c0b..6b6e7ccda906a 100644 --- a/apps/comments/src/activitytabviewplugin.js +++ b/apps/comments/src/activitytabviewplugin.js @@ -31,7 +31,7 @@ * * @param {OCA.Activity.ActivityModel} model for this activity * @param {jQuery} $el jQuery handle for this activity - * @param {string} view The view that displayes this activity + * @param {string} view The view that displays this activity */ prepareModelForDisplay(model, $el, view) { if (model.get('app') !== 'comments' || model.get('type') !== 'comments') { diff --git a/apps/comments/src/services/GetComments.js b/apps/comments/src/services/GetComments.js index 4d1f7b022aefa..7dffa969a6994 100644 --- a/apps/comments/src/services/GetComments.js +++ b/apps/comments/src/services/GetComments.js @@ -50,7 +50,7 @@ export default async function({ commentsType, ressourceId }, options = {}) { ${options.offset || 0} `, }, options)) - // See example on how it's done normaly + // See example on how it's done normally // https://github.com/perry-mitchell/webdav-client/blob/9de2da4a2599e06bd86c2778145b7ade39fe0b3c/source/interface/stat.js#L19 // Waiting for proper REPORT integration https://github.com/perry-mitchell/webdav-client/issues/207 .then(res => { diff --git a/apps/dav/lib/DAV/SystemPrincipalBackend.php b/apps/dav/lib/DAV/SystemPrincipalBackend.php index 07431feb6ddf1..d5739212e86d8 100644 --- a/apps/dav/lib/DAV/SystemPrincipalBackend.php +++ b/apps/dav/lib/DAV/SystemPrincipalBackend.php @@ -60,7 +60,7 @@ public function getPrincipalsByPrefix($prefixPath) { } /** - * Returns a specific principal, specified by it's path. + * Returns a specific principal, specified by its path. * The returned structure should be the exact same as from * getPrincipalsByPrefix. * diff --git a/apps/dav/lib/Listener/CalendarShareUpdateListener.php b/apps/dav/lib/Listener/CalendarShareUpdateListener.php index 8886575916273..dd046ddd66a9b 100644 --- a/apps/dav/lib/Listener/CalendarShareUpdateListener.php +++ b/apps/dav/lib/Listener/CalendarShareUpdateListener.php @@ -50,7 +50,7 @@ public function handle(Event $event): void { return; } - $this->logger->debug("Creating activity for Calendar having it's shares updated"); + $this->logger->debug("Creating activity for Calendar having its shares updated"); $this->activityBackend->onCalendarUpdateShares( $event->getCalendarData(), diff --git a/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php b/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php index 13025415f2a2d..7cf04ef5e7033 100644 --- a/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php +++ b/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php @@ -55,7 +55,7 @@ class CalDavBackendTest extends AbstractCalDavBackend { public function testCalendarOperations() { $calendarId = $this->createTestCalendar(); - // update it's display name + // update its display name $patch = new PropPatch([ '{DAV:}displayname' => 'Unit test', '{urn:ietf:params:xml:ns:caldav}calendar-description' => 'Calendar used for unit testing' diff --git a/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php b/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php index b468a2a65aeb3..63030910b5021 100644 --- a/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php +++ b/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php @@ -193,7 +193,7 @@ public function testAddressBookOperations() { $this->assertEquals('Example', $books[0]['{DAV:}displayname']); $this->assertEquals('User\'s displayname', $books[0]['{http://nextcloud.com/ns}owner-displayname']); - // update it's display name + // update its display name $patch = new PropPatch([ '{DAV:}displayname' => 'Unit test', '{urn:ietf:params:xml:ns:carddav}addressbook-description' => 'Addressbook used for unit testing' diff --git a/apps/encryption/lib/KeyManager.php b/apps/encryption/lib/KeyManager.php index ffd07c0f32377..2c6487d062ad9 100644 --- a/apps/encryption/lib/KeyManager.php +++ b/apps/encryption/lib/KeyManager.php @@ -623,7 +623,7 @@ public function backupUserKeys($purpose, $uid) { } /** - * creat a backup of the users private and public key and then delete it + * create a backup of the users private and public key and then delete it * * @param string $uid */ diff --git a/apps/federatedfilesharing/lib/FederatedShareProvider.php b/apps/federatedfilesharing/lib/FederatedShareProvider.php index d504a3e2acc2c..75bc6261756bc 100644 --- a/apps/federatedfilesharing/lib/FederatedShareProvider.php +++ b/apps/federatedfilesharing/lib/FederatedShareProvider.php @@ -969,7 +969,7 @@ private function getNode($userId, $id) { * @param int $shareType */ public function userDeleted($uid, $shareType) { - //TODO: probabaly a good idea to send unshare info to remote servers + //TODO: probably a good idea to send unshare info to remote servers $qb = $this->dbConnection->getQueryBuilder(); diff --git a/apps/federation/js/settings-admin.js b/apps/federation/js/settings-admin.js index d8ec194dcdaf5..fed0f441e0165 100644 --- a/apps/federation/js/settings-admin.js +++ b/apps/federation/js/settings-admin.js @@ -69,7 +69,7 @@ var url = $(this).val(); - // toggle add-button visiblity based on input length + // toggle add-button visibility based on input length if ( url.length > 0 ) $btnSubmit.removeClass("hidden") else diff --git a/apps/federation/lib/BackgroundJob/RequestSharedSecret.php b/apps/federation/lib/BackgroundJob/RequestSharedSecret.php index 2080418af614e..13ac9178eda1f 100644 --- a/apps/federation/lib/BackgroundJob/RequestSharedSecret.php +++ b/apps/federation/lib/BackgroundJob/RequestSharedSecret.php @@ -155,7 +155,7 @@ protected function run($argument) { $endPoints = $this->ocsDiscoveryService->discover($target, 'FEDERATED_SHARING'); $endPoint = isset($endPoints['shared-secret']) ? $endPoints['shared-secret'] : $this->defaultEndPoint; - // make sure that we have a well formated url + // make sure that we have a well formatted url $url = rtrim($target, '/') . '/' . trim($endPoint, '/'); try { diff --git a/apps/files/css/files.scss b/apps/files/css/files.scss index 99d3bf90f0128..480c133016bd1 100644 --- a/apps/files/css/files.scss +++ b/apps/files/css/files.scss @@ -1019,7 +1019,7 @@ table.dragshadow td.size { overflow: hidden; // we but the thumbnail in background to ensure // the name is the default click handler - // force back the cursor which have been overrided + // force back the cursor which has been overridden // and disabled for some reason... cursor: pointer !important; diff --git a/apps/files/js/breadcrumb.js b/apps/files/js/breadcrumb.js index 5386d6ee4a49d..1083be461bbec 100644 --- a/apps/files/js/breadcrumb.js +++ b/apps/files/js/breadcrumb.js @@ -320,7 +320,7 @@ // depending on whether the menu was previously being shown or not. this.$el.find('.crumbmenu').addClass('hidden'); - // Show the crumbs to compress the siblings before hidding again the + // Show the crumbs to compress the siblings before hiding again the // crumbs. This is needed when the siblings expand to fill all the // available width, as in that case their old width would limit the // available width for the crumbs. diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js index dc38f7311086d..69f9d9d0e636f 100644 --- a/apps/files/js/file-upload.js +++ b/apps/files/js/file-upload.js @@ -12,7 +12,7 @@ * The file upload code uses several hooks to interact with blueimps jQuery file upload library: * 1. the core upload handling hooks are added when initializing the plugin, * 2. if the browser supports progress events they are added in a separate set after the initialization - * 3. every app can add it's own triggers for fileupload + * 3. every app can add its own triggers for fileupload * - files adds d'n'd handlers and also reacts to done events to add new rows to the filelist * - TODO pictures upload button * - TODO music upload button diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 4acefa6902bfc..914fbe9dc609c 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -2591,7 +2591,7 @@ * @param fileNames array of file names to move * @param targetPath absolute target path * @param callback function to call when movement is finished - * @param dir the dir path where fileNames are located (optionnal, will take current folder if undefined) + * @param dir the dir path where fileNames are located (optional, will take current folder if undefined) */ move: function(fileNames, targetPath, callback, dir) { var self = this; @@ -2683,7 +2683,7 @@ * @param fileNames array of file names to copy * @param targetPath absolute target path * @param callback to call when copy is finished with success - * @param dir the dir path where fileNames are located (optionnal, will take current folder if undefined) + * @param dir the dir path where fileNames are located (optional, will take current folder if undefined) */ copy: function(fileNames, targetPath, callback, dir) { var self = this; @@ -2712,7 +2712,7 @@ if ( dotIndex > 1) { var leftPartOfName = targetPathAndName.substr(0, dotIndex); var fileNumber = leftPartOfName.match(/\d+/); - // TRANSLATORS name that is appended to copied files with the same name, will be put in parenthesis and appened with a number if it is the second+ copy + // TRANSLATORS name that is appended to copied files with the same name, will be put in parenthesis and appended with a number if it is the second+ copy var copyNameLocalized = t('files', 'copy'); if (isNaN(fileNumber) ) { fileNumber++; diff --git a/apps/files/js/jquery.fileupload.js b/apps/files/js/jquery.fileupload.js index cc0c97ba3edeb..9b382ccae3914 100644 --- a/apps/files/js/jquery.fileupload.js +++ b/apps/files/js/jquery.fileupload.js @@ -420,7 +420,7 @@ _initProgressListener: function (options) { var that = this, xhr = options.xhr ? options.xhr() : $.ajaxSettings.xhr(); - // Accesss to the native XHR object is required to add event listeners + // Access to the native XHR object is required to add event listeners // for the upload progress event: if (xhr.upload) { $(xhr.upload).bind('progress', function (e) { @@ -1060,7 +1060,7 @@ data.fileInputClone = inputClone; $('
').append(inputClone)[0].reset(); // Detaching allows to insert the fileInput on another form - // without loosing the file input value: + // without losing the file input value: input.after(inputClone).detach(); // If the fileInput had focus before it was detached, // restore focus to the inputClone. @@ -1138,7 +1138,7 @@ dirReader = entry.createReader(); readEntries(); } else { - // Return an empy list for file system items + // Return an empty list for file system items // other than files or directories: dfd.resolve([]); } diff --git a/apps/files/lib/Command/RepairTree.php b/apps/files/lib/Command/RepairTree.php index 4fe64ef0edf33..521fe3d6a4af6 100644 --- a/apps/files/lib/Command/RepairTree.php +++ b/apps/files/lib/Command/RepairTree.php @@ -68,7 +68,7 @@ public function execute(InputInterface $input, OutputInterface $output): int { ->where($query->expr()->eq('fileid', $query->createParameter('fileid'))); foreach ($rows as $row) { - $output->writeln("Path of file {$row['fileid']} is {$row['path']} but should be {$row['parent_path']}/{$row['name']} based on it's parent", OutputInterface::VERBOSITY_VERBOSE); + $output->writeln("Path of file {$row['fileid']} is {$row['path']} but should be {$row['parent_path']}/{$row['name']} based on its parent", OutputInterface::VERBOSITY_VERBOSE); if ($fix) { $fileId = $this->getFileId((int)$row['parent_storage'], $row['parent_path'] . '/' . $row['name']); diff --git a/apps/files/lib/Controller/ApiController.php b/apps/files/lib/Controller/ApiController.php index 45c7466e0c201..e29e81d6296d4 100644 --- a/apps/files/lib/Controller/ApiController.php +++ b/apps/files/lib/Controller/ApiController.php @@ -247,7 +247,7 @@ private function getShareTypesForNodes(array $nodes): array { } /** - * Returns a list of recently modifed files. + * Returns a list of recently modified files. * * @NoAdminRequired * diff --git a/apps/files/lib/Notification/Notifier.php b/apps/files/lib/Notification/Notifier.php index 8f885a995f9dc..1a7a3726229de 100644 --- a/apps/files/lib/Notification/Notifier.php +++ b/apps/files/lib/Notification/Notifier.php @@ -278,7 +278,7 @@ public function dismissNotification(INotification $notification): void { throw new \InvalidArgumentException('Unhandled app'); } - // TODO: This should all be moved to a service that also the transferownershipContoller uses. + // TODO: This should all be moved to a service that also the transferownershipController uses. try { $transferOwnership = $this->mapper->getById((int)$notification->getObjectId()); } catch (DoesNotExistException $e) { diff --git a/apps/files/src/views/Sidebar.vue b/apps/files/src/views/Sidebar.vue index 8fbf7a917f71d..108a0d480a6bf 100644 --- a/apps/files/src/views/Sidebar.vue +++ b/apps/files/src/views/Sidebar.vue @@ -455,7 +455,7 @@ export default { /** * Allow to set the Sidebar as fullscreen from OCA.Files.Sidebar * - * @param {boolean} isFullScreen - Wether or not to render the Sidebar in fullscreen. + * @param {boolean} isFullScreen - Whether or not to render the Sidebar in fullscreen. */ setFullScreenMode(isFullScreen) { this.isFullScreen = isFullScreen diff --git a/apps/files/tests/js/filelistSpec.js b/apps/files/tests/js/filelistSpec.js index b1153fc0a01f0..a302121ae0d73 100644 --- a/apps/files/tests/js/filelistSpec.js +++ b/apps/files/tests/js/filelistSpec.js @@ -266,7 +266,7 @@ describe('OCA.Files.FileList tests', function() { type: OCA.Files.FileActions.TYPE_INLINE, permissions: OC.PERMISSION_ALL, icon: function() { - // Specify icon for hitory button + // Specify icon for history button return OC.imagePath('core','actions/history'); }, actionHandler: actionStub @@ -2474,7 +2474,7 @@ describe('OCA.Files.FileList tests', function() { type: OCA.Files.FileActions.TYPE_INLINE, permissions: OC.PERMISSION_ALL, icon: function() { - // Specify icon for hitory button + // Specify icon for history button return OC.imagePath('core','actions/history'); }, actionHandler: actionStub @@ -2539,7 +2539,7 @@ describe('OCA.Files.FileList tests', function() { type: OCA.Files.FileActions.TYPE_INLINE, permissions: OC.PERMISSION_ALL, icon: function() { - // Specify icon for hitory button + // Specify icon for history button return OC.imagePath('core','actions/history'); }, actionHandler: actionStub diff --git a/apps/files_external/lib/Controller/GlobalStoragesController.php b/apps/files_external/lib/Controller/GlobalStoragesController.php index 89939640acc8a..2630fcc365a33 100644 --- a/apps/files_external/lib/Controller/GlobalStoragesController.php +++ b/apps/files_external/lib/Controller/GlobalStoragesController.php @@ -145,7 +145,7 @@ public function create( * @param int $id storage id * @param string $mountPoint storage mount point * @param string $backend backend identifier - * @param string $authMechanism authentication mechansim identifier + * @param string $authMechanism authentication mechanism identifier * @param array $backendOptions backend-specific options * @param array $mountOptions mount-specific options * @param array $applicableUsers users for which to mount the storage diff --git a/apps/files_external/lib/Lib/Auth/AuthMechanism.php b/apps/files_external/lib/Lib/Auth/AuthMechanism.php index 210dd705723ef..929068ea7ef4f 100644 --- a/apps/files_external/lib/Lib/Auth/AuthMechanism.php +++ b/apps/files_external/lib/Lib/Auth/AuthMechanism.php @@ -37,7 +37,7 @@ * such as \OCP\IDB for database operations. This allows an authentication * mechanism to perform advanced operations based on provided information. * - * An authenication scheme defines the parameter interface, common to the + * An authentication scheme defines the parameter interface, common to the * storage implementation, the backend and the authentication mechanism. * A storage implementation expects parameters according to the authentication * scheme, which are provided from the authentication mechanism. diff --git a/apps/files_external/lib/Lib/Backend/Backend.php b/apps/files_external/lib/Lib/Backend/Backend.php index 021d208aed337..053d9b8795290 100644 --- a/apps/files_external/lib/Lib/Backend/Backend.php +++ b/apps/files_external/lib/Lib/Backend/Backend.php @@ -38,7 +38,7 @@ * such as \OCP\IDB for database operations. This allows a backend * to perform advanced operations based on provided information. * - * An authenication scheme defines the parameter interface, common to the + * An authentication scheme defines the parameter interface, common to the * storage implementation, the backend and the authentication mechanism. * A storage implementation expects parameters according to the authentication * scheme, which are provided from the authentication mechanism. diff --git a/apps/files_external/lib/Lib/StorageConfig.php b/apps/files_external/lib/Lib/StorageConfig.php index 26ba483b00efa..20e5aea62d245 100644 --- a/apps/files_external/lib/Lib/StorageConfig.php +++ b/apps/files_external/lib/Lib/StorageConfig.php @@ -261,7 +261,7 @@ public function getPriority() { } /** - * Sets the mount priotity + * Sets the mount priority * * @param int $priority priority */ diff --git a/apps/files_external/lib/Service/StoragesService.php b/apps/files_external/lib/Service/StoragesService.php index 489192dbdc23c..eaa2ebf7e958c 100644 --- a/apps/files_external/lib/Service/StoragesService.php +++ b/apps/files_external/lib/Service/StoragesService.php @@ -345,7 +345,7 @@ public function createStorage( * Triggers the given hook signal for all the applicables given * * @param string $signal signal - * @param string $mountPoint hook mount pount param + * @param string $mountPoint hook mount point param * @param string $mountType hook mount type param * @param array $applicableArray array of applicable users/groups for which to trigger the hook */ diff --git a/apps/files_external/tests/Storage/SmbTest.php b/apps/files_external/tests/Storage/SmbTest.php index 17948c5275a6b..300b9f3f60457 100644 --- a/apps/files_external/tests/Storage/SmbTest.php +++ b/apps/files_external/tests/Storage/SmbTest.php @@ -135,7 +135,7 @@ public function testNotifyListen() { $result = null; - // since the notify handler buffers untill we start listening we will get the above changes + // since the notify handler buffers until we start listening we will get the above changes $notifyHandler->listen(function (IChange $change) use (&$result) { $result = $change; return false;//stop listening diff --git a/apps/files_sharing/js/files_drop.js b/apps/files_sharing/js/files_drop.js index 42151bca1cb0e..3ef2651d05431 100644 --- a/apps/files_sharing/js/files_drop.js +++ b/apps/files_sharing/js/files_drop.js @@ -97,7 +97,7 @@ Drop.addFileToUpload(e, data); $('#drop-upload-status').text(t('files_sharing', 'Waiting…')); //we return true to keep trying to upload next file even - //if addFileToUpload did not like the privious one + //if addFileToUpload did not like the previous one return true; }, done: function(e, data) { diff --git a/apps/files_sharing/lib/Cache.php b/apps/files_sharing/lib/Cache.php index 9f11431008f35..b6bd5bee94c3e 100644 --- a/apps/files_sharing/lib/Cache.php +++ b/apps/files_sharing/lib/Cache.php @@ -77,7 +77,7 @@ protected function getRoot() { // the sourceRootInfo path is the absolute path of the folder in the "real" storage // in the case where a folder is shared from a Jail we need to ensure that the share Jail - // has it's root set relative to the source Jail + // has its root set relative to the source Jail $currentStorage = $this->storage->getSourceStorage(); if ($currentStorage->instanceOfStorage(Jail::class)) { /** @var Jail $currentStorage */ diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 5908939066741..ebc910063ef96 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -382,7 +382,7 @@ public function getShare(string $id): DataResponse { 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 @@ public function updateShare( 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 a12878e6de234..854fe28b2520e 100644 --- a/apps/files_sharing/lib/Controller/ShareController.php +++ b/apps/files_sharing/lib/Controller/ShareController.php @@ -324,7 +324,7 @@ protected function emitShareAccessEvent(IShare $share, string $step = '', int $e * @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; diff --git a/apps/files_sharing/lib/SharedStorage.php b/apps/files_sharing/lib/SharedStorage.php index 60a292c498d67..f4ad29cb74c90 100644 --- a/apps/files_sharing/lib/SharedStorage.php +++ b/apps/files_sharing/lib/SharedStorage.php @@ -436,7 +436,7 @@ public function getOwner($path): string { public function getWatcher($path = '', $storage = null): Watcher { $mountManager = \OC::$server->getMountManager(); - // Get node informations + // Get node information $node = $this->getShare()->getNodeCacheEntry(); if ($node) { $mount = $mountManager->findByNumericId($node->getStorageId()); diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue index 328d010833258..ee8c1b2c517c3 100644 --- a/apps/files_sharing/src/components/SharingEntryLink.vue +++ b/apps/files_sharing/src/components/SharingEntryLink.vue @@ -824,7 +824,7 @@ export default { }, /** - * Menu have been closed or password has been submited. + * Menu have been closed or password has been submitted. * The only property that does not get * synced automatically is the password * So let's check if we have an unsaved diff --git a/apps/files_sharing/src/components/SharingInput.vue b/apps/files_sharing/src/components/SharingInput.vue index df98794255244..0a749a80140d7 100644 --- a/apps/files_sharing/src/components/SharingInput.vue +++ b/apps/files_sharing/src/components/SharingInput.vue @@ -249,7 +249,7 @@ export default { const allSuggestions = exactSuggestions.concat(suggestions).concat(externalResults).concat(lookupEntry) - // Count occurances of display names in order to provide a distinguishable description if needed + // Count occurrences of display names in order to provide a distinguishable description if needed const nameCounts = allSuggestions.reduce((nameCounts, result) => { if (!result.displayName) { return nameCounts @@ -383,7 +383,7 @@ export default { shareTypeToIcon(type) { switch (type) { case this.SHARE_TYPES.SHARE_TYPE_GUEST: - // default is a user, other icons are here to differenciate + // default is a user, other icons are here to differentiate // themselves from it, so let's not display the user icon // case this.SHARE_TYPES.SHARE_TYPE_REMOTE: // case this.SHARE_TYPES.SHARE_TYPE_USER: diff --git a/apps/files_sharing/src/models/Share.js b/apps/files_sharing/src/models/Share.js index e6512c67f8cf2..d28738d42ccc1 100644 --- a/apps/files_sharing/src/models/Share.js +++ b/apps/files_sharing/src/models/Share.js @@ -392,7 +392,7 @@ export default class Share { /** * Password expiration time * - * @param {string} password exipration time + * @param {string} password expiration time * @memberof Share */ set passwordExpirationTime(passwordExpirationTime) { diff --git a/apps/files_sharing/src/views/SharingTab.vue b/apps/files_sharing/src/views/SharingTab.vue index 53e48dfa1e94a..691153fd2960c 100644 --- a/apps/files_sharing/src/views/SharingTab.vue +++ b/apps/files_sharing/src/views/SharingTab.vue @@ -75,7 +75,7 @@ :name="fileInfo.name" /> - +
assertSame(10, $e->getCode()); } else { - $this->assertTrue(false, 'Exception catched, but expected: ' . $expectedResult); + $this->assertTrue(false, 'Exception caught, but expected: ' . $expectedResult); } } } diff --git a/apps/files_trashbin/lib/Trashbin.php b/apps/files_trashbin/lib/Trashbin.php index d449a136016e1..87da6a2a9fbe5 100644 --- a/apps/files_trashbin/lib/Trashbin.php +++ b/apps/files_trashbin/lib/Trashbin.php @@ -931,7 +931,7 @@ public static function deleteExpiredFiles($files, $user) { * recursive copy to copy a whole directory * * @param string $source source path, relative to the users files directory - * @param string $destination destination path relative to the users root directoy + * @param string $destination destination path relative to the users root directory * @param View $view file view for the users root directory * @return int * @throws Exceptions\CopyRecursiveException diff --git a/apps/oauth2/lib/Controller/OauthApiController.php b/apps/oauth2/lib/Controller/OauthApiController.php index 392eb09e89e12..910fdc9943230 100644 --- a/apps/oauth2/lib/Controller/OauthApiController.php +++ b/apps/oauth2/lib/Controller/OauthApiController.php @@ -133,7 +133,7 @@ public function getToken($grant_type, $code, $refresh_token, $client_id, $client $decryptedToken = $this->crypto->decrypt($accessToken->getEncryptedToken(), $code); - // Obtain the appToken assoicated + // Obtain the appToken associated try { $appToken = $this->tokenProvider->getTokenById($accessToken->getTokenId()); } catch (ExpiredTokenException $e) { diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php index 839ac404c947b..081baf01bed8a 100644 --- a/apps/provisioning_api/lib/Controller/UsersController.php +++ b/apps/provisioning_api/lib/Controller/UsersController.php @@ -470,7 +470,7 @@ public function addUser( throw new OCSException($e->getHint(), 107); } catch (OCSException $e) { $this->logger->warning( - 'Failed addUser attempt with ocs exeption.', + 'Failed addUser attempt with ocs exception.', [ 'app' => 'ocs_api', 'exception' => $e, @@ -479,7 +479,7 @@ public function addUser( throw $e; } catch (InvalidArgumentException $e) { $this->logger->error( - 'Failed addUser attempt with invalid argument exeption.', + 'Failed addUser attempt with invalid argument exception.', [ 'app' => 'ocs_api', 'exception' => $e, diff --git a/apps/settings/src/components/UserList/UserRow.vue b/apps/settings/src/components/UserList/UserRow.vue index f2947019f40bf..8565e9db50a63 100644 --- a/apps/settings/src/components/UserList/UserRow.vue +++ b/apps/settings/src/components/UserList/UserRow.vue @@ -447,7 +447,7 @@ export default { /** * Set user password * - * @param {string} password The email adress + * @param {string} password The email address */ updatePassword() { const password = this.$refs.password.value @@ -465,7 +465,7 @@ export default { /** * Set user mailAddress * - * @param {string} mailAddress The email adress + * @param {string} mailAddress The email address */ updateEmail() { const mailAddress = this.$refs.mailAddress.value diff --git a/apps/settings/src/store/apps.js b/apps/settings/src/store/apps.js index e6ddd76aaece8..27a0faefe001f 100644 --- a/apps/settings/src/store/apps.js +++ b/apps/settings/src/store/apps.js @@ -39,7 +39,7 @@ const state = { const mutations = { APPS_API_FAILURE(state, error) { - showError(t('settings', 'An error occured during the request. Unable to proceed.') + '
' + error.error.response.data.data.message, { isHTML: true }) + showError(t('settings', 'An error occurred during the request. Unable to proceed.') + '
' + error.error.response.data.data.message, { isHTML: true }) console.error(state, error) }, diff --git a/apps/settings/src/store/users.js b/apps/settings/src/store/users.js index ce15fa4e87b68..0632ecd8ab4c5 100644 --- a/apps/settings/src/store/users.js +++ b/apps/settings/src/store/users.js @@ -197,7 +197,7 @@ const mutations = { break default: logger.error(`Unknown action type in updateUserCounts: '${actionType}'`) - // not throwing error to interupt execution as this is not fatal + // not throwing error to interrupt execution as this is not fatal } }, setUserData(state, { userid, key, value }) { diff --git a/apps/user_ldap/ajax/testConfiguration.php b/apps/user_ldap/ajax/testConfiguration.php index a5f41e93a92ed..9d89b641d667f 100644 --- a/apps/user_ldap/ajax/testConfiguration.php +++ b/apps/user_ldap/ajax/testConfiguration.php @@ -47,7 +47,7 @@ if ($configurationOk) { //Configuration is okay /* - * Clossing the session since it won't be used from this point on. There might be a potential + * Closing the session since it won't be used from this point on. There might be a potential * race condition if a second request is made: either this request or the other might not * contact the LDAP backup server the first time when it should, but there shouldn't be any * problem with that other than the extra connection. diff --git a/apps/user_ldap/js/wizard/view.js b/apps/user_ldap/js/wizard/view.js index 1a89eba35156f..5e8b70f31622a 100644 --- a/apps/user_ldap/js/wizard/view.js +++ b/apps/user_ldap/js/wizard/view.js @@ -40,7 +40,7 @@ OCA = OCA || {}; }, /** - * applies click events to the forward and backword buttons + * applies click events to the forward and backward buttons */ initControls: function() { var view = this; diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php index 29d60817c02eb..cec192721a558 100644 --- a/apps/user_ldap/lib/Access.php +++ b/apps/user_ldap/lib/Access.php @@ -1751,7 +1751,7 @@ public function getUUID(string $dn, bool $isUser = true, array $ldapRecord = nul /** * converts a binary ObjectGUID into a string representation * - * @param string $oguid the ObjectGUID in it's binary form as retrieved from AD + * @param string $oguid the ObjectGUID in its binary form as retrieved from AD * @link https://www.php.net/manual/en/function.ldap-get-values-len.php#73198 */ private function convertObjectGUID2Str(string $oguid): string { @@ -1777,8 +1777,8 @@ private function convertObjectGUID2Str(string $oguid): string { /** * the first three blocks of the string-converted GUID happen to be in * reverse order. In order to use it in a filter, this needs to be - * corrected. Furthermore the dashes need to be replaced and \\ preprended - * to every two hax figures. + * corrected. Furthermore the dashes need to be replaced and \\ prepended + * to every two hex figures. * * If an invalid string is passed, it will be returned without change. */ @@ -2003,7 +2003,7 @@ private function initPagedSearch( $this->logger->debug('Ready for a paged search', ['app' => 'user_ldap']); } /* ++ Fixing RHDS searches with pages with zero results ++ - * We coudn't get paged searches working with our RHDS for login ($limit = 0), + * We couldn't get paged searches working with our RHDS for login ($limit = 0), * due to pages with zero results. * So we added "&& !empty($this->lastCookie)" to this test to ignore pagination * if we don't have a previous paged search. diff --git a/apps/user_ldap/lib/Group_LDAP.php b/apps/user_ldap/lib/Group_LDAP.php index 5e3d3afc140e2..5072f9d3f749d 100644 --- a/apps/user_ldap/lib/Group_LDAP.php +++ b/apps/user_ldap/lib/Group_LDAP.php @@ -245,7 +245,7 @@ public function getDynamicGroupMembers(string $dnGroup): array { private function _groupMembers(string $dnGroup, ?array &$seen = null): array { if ($seen === null) { $seen = []; - // the root entry has to be marked as processed to avoind infinit loops, + // the root entry has to be marked as processed to avoid infinite loops, // but not included in the results laters on $excludeFromResult = $dnGroup; } diff --git a/apps/user_ldap/lib/PagedResults/IAdapter.php b/apps/user_ldap/lib/PagedResults/IAdapter.php index 31338126e4052..62a0d0440c543 100644 --- a/apps/user_ldap/lib/PagedResults/IAdapter.php +++ b/apps/user_ldap/lib/PagedResults/IAdapter.php @@ -80,7 +80,7 @@ public function getResponseCallFunc(): string; public function getResponseCallArgs(array $originalArgs): array; /** - * the adapter should do it's LDAP function call and return success state + * the adapter should do its LDAP function call and return success state * * @param resource|\LDAP\Connection $link LDAP resource * @return bool diff --git a/apps/user_ldap/lib/User/Manager.php b/apps/user_ldap/lib/User/Manager.php index 655463a0ecd60..b1915ab57b5de 100644 --- a/apps/user_ldap/lib/User/Manager.php +++ b/apps/user_ldap/lib/User/Manager.php @@ -209,7 +209,7 @@ public function getDeletedUser($id) { } /** - * @brief returns a User object by it's Nextcloud username + * @brief returns a User object by its Nextcloud username * @param string $id the DN or username of the user * @return \OCA\User_LDAP\User\User|\OCA\User_LDAP\User\OfflineUser|null */ @@ -226,7 +226,7 @@ protected function createInstancyByUserName($id) { } /** - * @brief returns a User object by it's DN or Nextcloud username + * @brief returns a User object by its DN or Nextcloud username * @param string $id the DN or username of the user * @return \OCA\User_LDAP\User\User|\OCA\User_LDAP\User\OfflineUser|null * @throws \Exception when connection could not be established diff --git a/apps/user_ldap/lib/Wizard.php b/apps/user_ldap/lib/Wizard.php index ae9546be08b90..a2f101168b3b3 100644 --- a/apps/user_ldap/lib/Wizard.php +++ b/apps/user_ldap/lib/Wizard.php @@ -689,7 +689,7 @@ public function guessPortAndTLS() { 'Wiz: trying port '. $p . ', TLS '. $t, ['app' => 'user_ldap'] ); - //connectAndBind may throw Exception, it needs to be catched by the + //connectAndBind may throw Exception, it needs to be caught by the //callee of this method try { @@ -1084,7 +1084,7 @@ private function connectAndBind($port, $tls) { } $this->logger->debug( - 'Wiz: Attemping to Bind', + 'Wiz: Attempting to Bind', ['app' => 'user_ldap'] ); //interesting part: do the bind! diff --git a/apps/user_ldap/tests/Group_LDAPTest.php b/apps/user_ldap/tests/Group_LDAPTest.php index 6204c22cb9e90..236dcee3bb7b4 100644 --- a/apps/user_ldap/tests/Group_LDAPTest.php +++ b/apps/user_ldap/tests/Group_LDAPTest.php @@ -154,7 +154,7 @@ public function testCountWithSearchString() { ->method('readAttribute') ->willReturnCallback(function ($name) { //the search operation will call readAttribute, thus we need - //to anaylze the "dn". All other times we just need to return + //to analyze the "dn". All other times we just need to return //something that is neither null or false, but once an array //with the users in the group – so we do so all other times for //simplicicity. @@ -724,7 +724,7 @@ public function testGetGroupsWithOffset() { } /** - * tests that a user listing is complete, if all it's members have the group + * tests that a user listing is complete, if all its members have the group * as their primary. */ public function testUsersInGroupPrimaryMembersOnly() { @@ -770,7 +770,7 @@ public function testUsersInGroupPrimaryMembersOnly() { } /** - * tests that a user listing is complete, if all it's members have the group + * tests that a user listing is complete, if all its members have the group * as their primary. */ public function testUsersInGroupPrimaryAndUnixMembers() { @@ -814,7 +814,7 @@ public function testUsersInGroupPrimaryAndUnixMembers() { } /** - * tests that a user counting is complete, if all it's members have the group + * tests that a user counting is complete, if all its members have the group * as their primary. */ public function testCountUsersInGroupPrimaryMembersOnly() { diff --git a/apps/user_ldap/tests/Mapping/AbstractMappingTest.php b/apps/user_ldap/tests/Mapping/AbstractMappingTest.php index 0d21172445f6c..8439bcc57c46e 100644 --- a/apps/user_ldap/tests/Mapping/AbstractMappingTest.php +++ b/apps/user_ldap/tests/Mapping/AbstractMappingTest.php @@ -82,7 +82,7 @@ protected function mapEntries($mapper, $data) { } /** - * initalizes environment for a test run and returns an array with + * initializes environment for a test run and returns an array with * test objects. Preparing environment means that all mappings are cleared * first and then filled with test entries. * @return array 0 = \OCA\User_LDAP\Mapping\AbstractMapping, 1 = array of diff --git a/apps/user_ldap/tests/User/UserTest.php b/apps/user_ldap/tests/User/UserTest.php index d2113de842e03..470b0829868d3 100644 --- a/apps/user_ldap/tests/User/UserTest.php +++ b/apps/user_ldap/tests/User/UserTest.php @@ -493,7 +493,7 @@ public function testUpdateWrongDefaultQuotaNotProvided() { $this->user->updateQuota(); } - //the testUpdateAvatar series also implicitely tests getAvatarImage + //the testUpdateAvatar series also implicitly tests getAvatarImage public function XtestUpdateAvatarJpegPhotoProvided() { $this->access->expects($this->once()) ->method('readAttribute') diff --git a/apps/user_status/lib/Service/PredefinedStatusService.php b/apps/user_status/lib/Service/PredefinedStatusService.php index 40f6052aa95c7..7d2f985c16895 100644 --- a/apps/user_status/lib/Service/PredefinedStatusService.php +++ b/apps/user_status/lib/Service/PredefinedStatusService.php @@ -43,7 +43,7 @@ class PredefinedStatusService { private const VACATIONING = 'vacationing'; private const REMOTE_WORK = 'remote-work'; /** - * @depreacted See \OCP\UserStatus\IUserStatus::MESSAGE_CALL + * @deprecated See \OCP\UserStatus\IUserStatus::MESSAGE_CALL */ public const CALL = 'call'; diff --git a/apps/workflowengine/src/workflowengine.js b/apps/workflowengine/src/workflowengine.js index 0959ca86b2588..e3f3fc2d9c328 100644 --- a/apps/workflowengine/src/workflowengine.js +++ b/apps/workflowengine/src/workflowengine.js @@ -42,7 +42,7 @@ import ShippedChecks from './components/Checks' */ /** - * A plugin for extending the admin page repesentation of a operator + * A plugin for extending the admin page representation of an operator * * @typedef {object} OperatorPlugin * @property {string} id - The PHP class name of the check