Skip to content

Commit

Permalink
Fix typos in lib/public subdirectory
Browse files Browse the repository at this point in the history
Found via `codespell -q 3 -S l10n -L jus ./lib/public`

Signed-off-by: luz paz <luzpaz@github.com>

Update lib/public/Accounts/IAccount.php

Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: luzpaz <luzpaz@users.noreply.github.com>
  • Loading branch information
luzpaz and come-nc committed Jul 28, 2022
1 parent 3e9c52a commit 4993285
Show file tree
Hide file tree
Showing 23 changed files with 30 additions and 30 deletions.
10 changes: 5 additions & 5 deletions lib/private/Preview/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ private function getSmallImagePreview(ISimpleFolder $previewFolder, File $file,

// Try to get the extension.
try {
$ext = $this->getExtention($preview->dataMimeType());
$ext = $this->getExtension($preview->dataMimeType());
} catch (\InvalidArgumentException $e) {
// Just continue to the next iteration if this preview doesn't have a valid mimetype
continue;
Expand Down Expand Up @@ -343,9 +343,9 @@ private function getMaxPreview(ISimpleFolder $previewFolder, File $file, $mimeTy
continue;
}

// Try to get the extention.
// Try to get the extension.
try {
$ext = $this->getExtention($preview->dataMimeType());
$ext = $this->getExtension($preview->dataMimeType());
} catch (\InvalidArgumentException $e) {
// Just continue to the next iteration if this preview doesn't have a valid mimetype
continue;
Expand Down Expand Up @@ -394,7 +394,7 @@ private function generatePath($width, $height, $crop, $mimeType, $prefix) {
$path .= '-crop';
}

$ext = $this->getExtention($mimeType);
$ext = $this->getExtension($mimeType);
$path .= '.' . $ext;
return $path;
}
Expand Down Expand Up @@ -586,7 +586,7 @@ private function getPreviewFolder(File $file) {
* @return null|string
* @throws \InvalidArgumentException
*/
private function getExtention($mimeType) {
private function getExtension($mimeType) {
switch ($mimeType) {
case 'image/png':
return 'png';
Expand Down
2 changes: 1 addition & 1 deletion lib/public/Accounts/IAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function getAllProperties(): Generator;
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
Expand Down
2 changes: 1 addition & 1 deletion lib/public/Accounts/IAccountPropertyCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
interface IAccountPropertyCollection extends JsonSerializable {

/**
* retuns the collection name
* returns the collection name
*
* @since 22.0.0
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/public/AppFramework/AuthPublicShareController.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ protected function authFailed() {
}

/**
* Function called after successfull authentication
* Function called after successful authentication
*
* You can use this to do some logging for example
*
Expand Down
4 changes: 2 additions & 2 deletions lib/public/AppFramework/Http/RedirectToDefaultAppResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
* Redirects to the default app
*
* @since 16.0.0
* @depreacted 23.0.0 Use RedirectResponse() with IURLGenerator::linkToDefaultPageUrl() instead
* @deprecated 23.0.0 Use RedirectResponse() with IURLGenerator::linkToDefaultPageUrl() instead
*/
class RedirectToDefaultAppResponse extends RedirectResponse {
/**
* Creates a response that redirects to the default app
*
* @since 16.0.0
* @depreacted 23.0.0 Use RedirectResponse() with IURLGenerator::linkToDefaultPageUrl() instead
* @deprecated 23.0.0 Use RedirectResponse() with IURLGenerator::linkToDefaultPageUrl() instead
*/
public function __construct() {
/** @var IURLGenerator $urlGenerator */
Expand Down
2 changes: 1 addition & 1 deletion lib/public/AppFramework/PublicShareController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
*
* 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
*
Expand Down
2 changes: 1 addition & 1 deletion lib/public/BackgroundJob/IJobList.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion lib/public/Collaboration/AutoComplete/IManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/public/Contacts/IManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,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{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
Expand Down
2 changes: 1 addition & 1 deletion lib/public/DB/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,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
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/public/DB/QueryBuilder/IQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ public function set($key, $value);
* ->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();
Expand Down
2 changes: 1 addition & 1 deletion lib/public/Defaults.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function getProductName(): string {
* name of your ownCloud instance containing HTML styles
* @return string
* @since 8.0.0
* @depreacted 22.0.0
* @deprecated 22.0.0
*/
public function getHTMLName(): string {
return $this->defaults->getHTMLName();
Expand Down
2 changes: 1 addition & 1 deletion lib/public/DirectEditing/IEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function isSecure(): bool;
* 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
*
Expand Down
4 changes: 2 additions & 2 deletions lib/public/Files.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@

/**
* 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
Expand Down
2 changes: 1 addition & 1 deletion lib/public/Files/Cache/ICache.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
/**
* 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
Expand Down
2 changes: 1 addition & 1 deletion lib/public/FullTextSearch/Model/ISearchResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* 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.
*
Expand Down
2 changes: 1 addition & 1 deletion lib/public/HintException.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function __toString(): string {

/**
* 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
Expand Down
2 changes: 1 addition & 1 deletion lib/public/LDAP/ILDAPProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function getLDAPDisplayNameField($uid);
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
Expand Down
2 changes: 1 addition & 1 deletion lib/public/Notification/IManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function registerNotifier(\Closure $service, \Closure $info);
* @param string $notifierService The service must implement INotifier, otherwise a
* \InvalidArgumentException is thrown later
* @since 17.0.0
* @depreacted 22.0.0 use the IBootStrap registration context
* @deprecated 22.0.0 use the IBootStrap registration context
*/
public function registerNotifierService(string $notifierService): void;

Expand Down
2 changes: 1 addition & 1 deletion lib/public/Share_Backend.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function generateTarget($itemSource, $shareWith, $exclude = null);
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
Expand Down
2 changes: 1 addition & 1 deletion lib/public/User/Events/UserLoggedInWithCookieEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
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
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/public/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -585,13 +585,13 @@ public static function needUpgrade() {
* 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
Expand Down
2 changes: 1 addition & 1 deletion lib/public/WorkflowEngine/IEntityEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
/**
* Interface IEntityEvent
*
* represents an entitiy event that is dispatched via EventDispatcher
* represents an entity event that is dispatched via EventDispatcher
*
*
* @since 18.0.0
Expand Down

0 comments on commit 4993285

Please sign in to comment.