Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in apps/ subdirectory #33393

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/cloud_federation_api/README.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion apps/comments/src/activitytabviewplugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down
2 changes: 1 addition & 1 deletion apps/comments/src/services/GetComments.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default async function({ commentsType, ressourceId }, options = {}) {
<oc:offset>${options.offset || 0}</oc:offset>
</oc:filter-comments>`,
}, 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 => {
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/lib/DAV/SystemPrincipalBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/lib/Listener/CalendarShareUpdateListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/tests/unit/CalDAV/CalDavBackendTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/tests/unit/CardDAV/CardDavBackendTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion apps/encryption/lib/KeyManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion apps/federatedfilesharing/lib/FederatedShareProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion apps/federation/js/settings-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion apps/federation/lib/BackgroundJob/RequestSharedSecret.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion apps/files/css/files.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion apps/files/js/breadcrumb.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion apps/files/js/file-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions apps/files/js/filelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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++;
Expand Down
6 changes: 3 additions & 3 deletions apps/files/js/jquery.fileupload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -1060,7 +1060,7 @@
data.fileInputClone = inputClone;
$('<form></form>').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.
Expand Down Expand Up @@ -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([]);
}
Expand Down
2 changes: 1 addition & 1 deletion apps/files/lib/Command/RepairTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down
2 changes: 1 addition & 1 deletion apps/files/lib/Controller/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
2 changes: 1 addition & 1 deletion apps/files/lib/Notification/Notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion apps/files/src/views/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions apps/files/tests/js/filelistSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion apps/files_external/lib/Lib/Auth/AuthMechanism.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion apps/files_external/lib/Lib/Backend/Backend.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion apps/files_external/lib/Lib/StorageConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public function getPriority() {
}

/**
* Sets the mount priotity
* Sets the mount priority
*
* @param int $priority priority
*/
Expand Down
2 changes: 1 addition & 1 deletion apps/files_external/lib/Service/StoragesService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion apps/files_external/tests/Storage/SmbTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion apps/files_sharing/js/files_drop.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion apps/files_sharing/lib/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
4 changes: 2 additions & 2 deletions apps/files_sharing/lib/Controller/ShareAPIController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion apps/files_sharing/lib/Controller/ShareController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion apps/files_sharing/lib/SharedStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion apps/files_sharing/src/components/SharingEntryLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions apps/files_sharing/src/components/SharingInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion apps/files_sharing/src/models/Share.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion apps/files_sharing/src/views/SharingTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
:name="fileInfo.name" />
</template>

<!-- additionnal entries, use it with cautious -->
<!-- additional entries, use it with cautious -->
<div v-for="(section, index) in sections"
:ref="'section-' + index"
:key="index"
Expand Down
2 changes: 1 addition & 1 deletion apps/files_sharing/tests/ApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
* Class ApiTest
*
* @group DB
* TODO: convert to real intergration tests
* TODO: convert to real integration tests
*/
class ApiTest extends TestCase {
public const TEST_FOLDER_NAME = '/folder_share_api_test';
Expand Down
Loading