aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2023-05-11 10:26:50 +0200
committerGitHub <noreply@github.com>2023-05-11 10:26:50 +0200
commit979f4033ca1cd0be7f255f028d4cc637a216440d (patch)
tree9662f1da5b357eb75f921a73503ba142796826ab /lib
parentb6c034ac57bc63907dfadc29aca80edf09092064 (diff)
parentd55a7c619d3733863387cc8c6269050b72cbff0c (diff)
downloadnextcloud-server-979f4033ca1cd0be7f255f028d4cc637a216440d.tar.gz
nextcloud-server-979f4033ca1cd0be7f255f028d4cc637a216440d.zip
Merge pull request #33381 from luzpaz/fix/lib-public-typos
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Preview/Generator.php4
-rw-r--r--lib/public/Accounts/IAccount.php2
-rw-r--r--lib/public/Accounts/IAccountPropertyCollection.php2
-rw-r--r--lib/public/AppFramework/PublicShareController.php2
-rw-r--r--lib/public/BackgroundJob/IJobList.php2
-rw-r--r--lib/public/Collaboration/AutoComplete/IManager.php2
-rw-r--r--lib/public/Contacts/IManager.php2
-rw-r--r--lib/public/DB/Exception.php2
-rw-r--r--lib/public/DB/QueryBuilder/IQueryBuilder.php2
-rw-r--r--lib/public/DirectEditing/IEditor.php2
-rw-r--r--lib/public/Files.php4
-rw-r--r--lib/public/Files/Cache/ICache.php2
-rw-r--r--lib/public/FullTextSearch/Model/ISearchResult.php2
-rw-r--r--lib/public/HintException.php2
-rw-r--r--lib/public/LDAP/ILDAPProvider.php2
-rw-r--r--lib/public/Share_Backend.php2
-rw-r--r--lib/public/User/Events/UserLoggedInWithCookieEvent.php2
-rw-r--r--lib/public/Util.php4
-rw-r--r--lib/public/WorkflowEngine/IEntityEvent.php2
19 files changed, 22 insertions, 22 deletions
diff --git a/lib/private/Preview/Generator.php b/lib/private/Preview/Generator.php
index ed9474fafb2..d19f5d29bf5 100644
--- a/lib/private/Preview/Generator.php
+++ b/lib/private/Preview/Generator.php
@@ -446,7 +446,7 @@ class Generator {
$path .= '-max';
}
- $ext = $this->getExtention($mimeType);
+ $ext = $this->getExtension($mimeType);
$path .= '.' . $ext;
return $path;
}
@@ -647,7 +647,7 @@ class Generator {
* @return null|string
* @throws \InvalidArgumentException
*/
- private function getExtention($mimeType) {
+ private function getExtension($mimeType) {
switch ($mimeType) {
case 'image/png':
return 'png';
diff --git a/lib/public/Accounts/IAccount.php b/lib/public/Accounts/IAccount.php
index 190896a54ef..e024ced5bda 100644
--- a/lib/public/Accounts/IAccount.php
+++ b/lib/public/Accounts/IAccount.php
@@ -134,7 +134,7 @@ interface IAccount extends \JsonSerializable {
public function setPropertyCollection(IAccountPropertyCollection $propertyCollection): IAccount;
/**
- * Returns the requestes propery collection (multi-value properties)
+ * Returns the requested property collection (multi-value properties)
*
* @throws PropertyDoesNotExistException against invalid collection name
* @since 22.0.0
diff --git a/lib/public/Accounts/IAccountPropertyCollection.php b/lib/public/Accounts/IAccountPropertyCollection.php
index 3f42cb1e6b7..c4ae5b5abc0 100644
--- a/lib/public/Accounts/IAccountPropertyCollection.php
+++ b/lib/public/Accounts/IAccountPropertyCollection.php
@@ -38,7 +38,7 @@ use JsonSerializable;
*/
interface IAccountPropertyCollection extends JsonSerializable {
/**
- * retuns the collection name
+ * returns the collection name
*
* @since 22.0.0
*/
diff --git a/lib/public/AppFramework/PublicShareController.php b/lib/public/AppFramework/PublicShareController.php
index 706dc0b9ae9..52acbe841b4 100644
--- a/lib/public/AppFramework/PublicShareController.php
+++ b/lib/public/AppFramework/PublicShareController.php
@@ -36,7 +36,7 @@ use OCP\ISession;
*
* Use this for example for a controller that is not to be called via a webbrowser
* directly. For example a PublicPreviewController. As this is not meant to be
- * called by a user direclty.
+ * called by a user directly.
*
* To show an auth page extend the AuthPublicShareController
*
diff --git a/lib/public/BackgroundJob/IJobList.php b/lib/public/BackgroundJob/IJobList.php
index 71faefb8825..65e2f5b6250 100644
--- a/lib/public/BackgroundJob/IJobList.php
+++ b/lib/public/BackgroundJob/IJobList.php
@@ -52,7 +52,7 @@ interface IJobList {
* Add a job to the list
*
* @param IJob|class-string<IJob> $job
- * @param mixed $argument The argument to be passed to $job->run() when the job is exectured
+ * @param mixed $argument The argument to be passed to $job->run() when the job is executed
* @since 7.0.0
*/
public function add($job, $argument = null): void;
diff --git a/lib/public/Collaboration/AutoComplete/IManager.php b/lib/public/Collaboration/AutoComplete/IManager.php
index c4ca499b618..320250387d9 100644
--- a/lib/public/Collaboration/AutoComplete/IManager.php
+++ b/lib/public/Collaboration/AutoComplete/IManager.php
@@ -35,7 +35,7 @@ interface IManager {
public function registerSorter($className);
/**
- * @param array $sorters list of sorter IDs, seperated by "|"
+ * @param array $sorters list of sorter IDs, separated by "|"
* @param array $sortArray array representation of OCP\Collaboration\Collaborators\ISearchResult
* @param array $context context info of the search, keys: itemType, itemId
* @since 13.0.0
diff --git a/lib/public/Contacts/IManager.php b/lib/public/Contacts/IManager.php
index 7aa3d9ce38b..6ca349b95d0 100644
--- a/lib/public/Contacts/IManager.php
+++ b/lib/public/Contacts/IManager.php
@@ -95,7 +95,7 @@ interface IManager {
* - 'limit' - Set a numeric limit for the search results
* - 'offset' - Set the offset for the limited search results
* - 'enumeration' - (since 23.0.0) Whether user enumeration on system address book is allowed
- * - 'fullmatch' - (since 23.0.0) Whether matching on full detail in system addresss book is allowed
+ * - 'fullmatch' - (since 23.0.0) Whether matching on full detail in system address book is allowed
* - 'strict_search' - (since 23.0.0) Whether the search pattern is full string or partial search
* @psalm-param array{types?: bool, escape_like_param?: bool, limit?: int, offset?: int, enumeration?: bool, fullmatch?: bool, strict_search?: bool} $options
* @return array an array of contacts which are arrays of key-value-pairs
diff --git a/lib/public/DB/Exception.php b/lib/public/DB/Exception.php
index 105cbd188d7..f977ffa7396 100644
--- a/lib/public/DB/Exception.php
+++ b/lib/public/DB/Exception.php
@@ -110,7 +110,7 @@ class Exception extends BaseException {
public const REASON_NON_UNIQUE_FIELD_NAME = 10;
/**
- * A not null contraint was violated
+ * A not null constraint was violated
*
* @since 21.0.0
*/
diff --git a/lib/public/DB/QueryBuilder/IQueryBuilder.php b/lib/public/DB/QueryBuilder/IQueryBuilder.php
index d677ee214f8..1f5c4307914 100644
--- a/lib/public/DB/QueryBuilder/IQueryBuilder.php
+++ b/lib/public/DB/QueryBuilder/IQueryBuilder.php
@@ -620,7 +620,7 @@ interface IQueryBuilder {
* ->from('users', 'u')
* ->where('u.id = ?');
*
- * // You can optionally programatically build and/or expressions
+ * // You can optionally programmatically build and/or expressions
* $qb = $conn->getQueryBuilder();
*
* $or = $qb->expr()->orx();
diff --git a/lib/public/DirectEditing/IEditor.php b/lib/public/DirectEditing/IEditor.php
index c70b4751e6e..96d2c31c876 100644
--- a/lib/public/DirectEditing/IEditor.php
+++ b/lib/public/DirectEditing/IEditor.php
@@ -87,7 +87,7 @@ interface IEditor {
* Return a template response for displaying the editor
*
* open can only be called once when the client requests the editor with a one-time-use token
- * For handling editing and later requests, editors need to impelement their own token handling and take care of invalidation
+ * For handling editing and later requests, editors need to implement their own token handling and take care of invalidation
*
* This behavior is similar to the current direct editing implementation in collabora where we generate a one-time token and switch over to the regular wopi token for the actual editing/saving process
*
diff --git a/lib/public/Files.php b/lib/public/Files.php
index c078f57b2c3..e6e63b10b0b 100644
--- a/lib/public/Files.php
+++ b/lib/public/Files.php
@@ -37,13 +37,13 @@ namespace OCP;
/**
* This class provides access to the internal filesystem abstraction layer. Use
- * this class exlusively if you want to access files
+ * this class exclusively if you want to access files
* @since 5.0.0
* @deprecated 14.0.0
*/
class Files {
/**
- * Recusive deletion of folders
+ * Recursive deletion of folders
* @return bool
* @since 5.0.0
* @deprecated 14.0.0
diff --git a/lib/public/Files/Cache/ICache.php b/lib/public/Files/Cache/ICache.php
index 37e71f3ac79..1934cc24bd4 100644
--- a/lib/public/Files/Cache/ICache.php
+++ b/lib/public/Files/Cache/ICache.php
@@ -28,7 +28,7 @@ use OCP\Files\Search\ISearchQuery;
/**
* Metadata cache for a storage
*
- * The cache stores the metadata for all files and folders in a storage and is kept up to date trough the following mechanisms:
+ * The cache stores the metadata for all files and folders in a storage and is kept up to date through the following mechanisms:
*
* - Scanner: scans the storage and updates the cache where needed
* - Watcher: checks for changes made to the filesystem outside of the Nextcloud instance and rescans files and folder when a change is detected
diff --git a/lib/public/FullTextSearch/Model/ISearchResult.php b/lib/public/FullTextSearch/Model/ISearchResult.php
index 60070856264..2d78a1e4a89 100644
--- a/lib/public/FullTextSearch/Model/ISearchResult.php
+++ b/lib/public/FullTextSearch/Model/ISearchResult.php
@@ -38,7 +38,7 @@ use OCP\FullTextSearch\IFullTextSearchProvider;
* search and fill the SearchResult object with results.
*
* Then, the object will be passed to the targeted Content Provider that will
- * improve the Search Results with detailed informations.
+ * improve the Search Results with detailed information.
*
* Finally, the SearchResult is returned to the original search request.
*
diff --git a/lib/public/HintException.php b/lib/public/HintException.php
index b5ee7642b03..ad6eb486d4b 100644
--- a/lib/public/HintException.php
+++ b/lib/public/HintException.php
@@ -67,7 +67,7 @@ class HintException extends \Exception {
/**
* Returns the hint with the intention to be presented to the end user. If
- * an empty hint was specified upon instatiation, the message is returned
+ * an empty hint was specified upon instantiation, the message is returned
* instead.
*
* @since 23.0.0
diff --git a/lib/public/LDAP/ILDAPProvider.php b/lib/public/LDAP/ILDAPProvider.php
index 8fad3bd2266..e37343adbbd 100644
--- a/lib/public/LDAP/ILDAPProvider.php
+++ b/lib/public/LDAP/ILDAPProvider.php
@@ -151,7 +151,7 @@ interface ILDAPProvider {
public function getLDAPEmailField($uid);
/**
- * Get the LDAP attribute name for the type of association betweeen users and groups
+ * Get the LDAP attribute name for the type of association between users and groups
* @param string $gid group id
* @return string the configuration, one of: 'memberUid', 'uniqueMember', 'member', 'gidNumber', ''
* @throws \Exception if group id was not found in LDAP
diff --git a/lib/public/Share_Backend.php b/lib/public/Share_Backend.php
index 044ecf9aa28..16967526ff6 100644
--- a/lib/public/Share_Backend.php
+++ b/lib/public/Share_Backend.php
@@ -82,7 +82,7 @@ interface Share_Backend {
public function formatItems($items, $format, $parameters = null);
/**
- * Check if a given share type is allowd by the back-end
+ * Check if a given share type is allowed by the back-end
*
* @param int $shareType share type
* @return boolean
diff --git a/lib/public/User/Events/UserLoggedInWithCookieEvent.php b/lib/public/User/Events/UserLoggedInWithCookieEvent.php
index c8ea946a5fb..e92c6a05629 100644
--- a/lib/public/User/Events/UserLoggedInWithCookieEvent.php
+++ b/lib/public/User/Events/UserLoggedInWithCookieEvent.php
@@ -30,7 +30,7 @@ use OCP\EventDispatcher\Event;
use OCP\IUser;
/**
- * Emitted when a user has been succesfully logged in via remember-me cookies.
+ * Emitted when a user has been successfully logged in via remember-me cookies.
*
* @since 18.0.0
*/
diff --git a/lib/public/Util.php b/lib/public/Util.php
index 69eccbbc5f6..64934c5f3ad 100644
--- a/lib/public/Util.php
+++ b/lib/public/Util.php
@@ -576,13 +576,13 @@ class Util {
* Sometimes a string has to be shortened to fit within a certain maximum
* data length in bytes. substr() you may break multibyte characters,
* because it operates on single byte level. mb_substr() operates on
- * characters, so does not ensure that the shortend string satisfies the
+ * characters, so does not ensure that the shortened string satisfies the
* max length in bytes.
*
* For example, json_encode is messing with multibyte characters a lot,
* replacing them with something along "\u1234".
*
- * This function shortens the string with by $accurancy (-5) from
+ * This function shortens the string with by $accuracy (-5) from
* $dataLength characters, until it fits within $dataLength bytes.
*
* @since 23.0.0
diff --git a/lib/public/WorkflowEngine/IEntityEvent.php b/lib/public/WorkflowEngine/IEntityEvent.php
index 8faed8b266c..c158edde30f 100644
--- a/lib/public/WorkflowEngine/IEntityEvent.php
+++ b/lib/public/WorkflowEngine/IEntityEvent.php
@@ -28,7 +28,7 @@ namespace OCP\WorkflowEngine;
/**
* Interface IEntityEvent
*
- * represents an entitiy event that is dispatched via EventDispatcher
+ * represents an entity event that is dispatched via EventDispatcher
*
*
* @since 18.0.0