Skip to content

Commit 3543afa

Browse files
luzpazcome-nc
andcommitted
Fix typos in lib/public subdirectory
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: luz paz <luzpaz@github.com>
1 parent 3e9c52a commit 3543afa

File tree

23 files changed

+30
-30
lines changed

23 files changed

+30
-30
lines changed

lib/private/Preview/Generator.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ private function getSmallImagePreview(ISimpleFolder $previewFolder, File $file,
274274

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

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

397-
$ext = $this->getExtention($mimeType);
397+
$ext = $this->getExtension($mimeType);
398398
$path .= '.' . $ext;
399399
return $path;
400400
}
@@ -586,7 +586,7 @@ private function getPreviewFolder(File $file) {
586586
* @return null|string
587587
* @throws \InvalidArgumentException
588588
*/
589-
private function getExtention($mimeType) {
589+
private function getExtension($mimeType) {
590590
switch ($mimeType) {
591591
case 'image/png':
592592
return 'png';

lib/public/Accounts/IAccount.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function getAllProperties(): Generator;
135135
public function setPropertyCollection(IAccountPropertyCollection $propertyCollection): IAccount;
136136

137137
/**
138-
* Returns the requestes propery collection (multi-value properties)
138+
* Returns the requested property collection (multi-value properties)
139139
*
140140
* @throws PropertyDoesNotExistException against invalid collection name
141141
* @since 22.0.0

lib/public/Accounts/IAccountPropertyCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
interface IAccountPropertyCollection extends JsonSerializable {
4040

4141
/**
42-
* retuns the collection name
42+
* returns the collection name
4343
*
4444
* @since 22.0.0
4545
*/

lib/public/AppFramework/AuthPublicShareController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ protected function authFailed() {
130130
}
131131

132132
/**
133-
* Function called after successfull authentication
133+
* Function called after successful authentication
134134
*
135135
* You can use this to do some logging for example
136136
*

lib/public/AppFramework/Http/RedirectToDefaultAppResponse.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@
3232
* Redirects to the default app
3333
*
3434
* @since 16.0.0
35-
* @depreacted 23.0.0 Use RedirectResponse() with IURLGenerator::linkToDefaultPageUrl() instead
35+
* @deprecated 23.0.0 Use RedirectResponse() with IURLGenerator::linkToDefaultPageUrl() instead
3636
*/
3737
class RedirectToDefaultAppResponse extends RedirectResponse {
3838
/**
3939
* Creates a response that redirects to the default app
4040
*
4141
* @since 16.0.0
42-
* @depreacted 23.0.0 Use RedirectResponse() with IURLGenerator::linkToDefaultPageUrl() instead
42+
* @deprecated 23.0.0 Use RedirectResponse() with IURLGenerator::linkToDefaultPageUrl() instead
4343
*/
4444
public function __construct() {
4545
/** @var IURLGenerator $urlGenerator */

lib/public/AppFramework/PublicShareController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
*
3737
* Use this for example for a controller that is not to be called via a webbrowser
3838
* directly. For example a PublicPreviewController. As this is not meant to be
39-
* called by a user direclty.
39+
* called by a user directly.
4040
*
4141
* To show an auth page extend the AuthPublicShareController
4242
*

lib/public/BackgroundJob/IJobList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ interface IJobList {
5252
* Add a job to the list
5353
*
5454
* @param IJob|class-string<IJob> $job
55-
* @param mixed $argument The argument to be passed to $job->run() when the job is exectured
55+
* @param mixed $argument The argument to be passed to $job->run() when the job is executed
5656
* @since 7.0.0
5757
*/
5858
public function add($job, $argument = null): void;

lib/public/Collaboration/AutoComplete/IManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ interface IManager {
3535
public function registerSorter($className);
3636

3737
/**
38-
* @param array $sorters list of sorter IDs, seperated by "|"
38+
* @param array $sorters list of sorter IDs, separated by "|"
3939
* @param array $sortArray array representation of OCP\Collaboration\Collaborators\ISearchResult
4040
* @param array $context context info of the search, keys: itemType, itemId
4141
* @since 13.0.0

lib/public/Contacts/IManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ interface IManager {
9494
* - 'limit' - Set a numeric limit for the search results
9595
* - 'offset' - Set the offset for the limited search results
9696
* - 'enumeration' - (since 23.0.0) Whether user enumeration on system address book is allowed
97-
* - 'fullmatch' - (since 23.0.0) Whether matching on full detail in system addresss book is allowed
97+
* - 'fullmatch' - (since 23.0.0) Whether matching on full detail in system address book is allowed
9898
* - 'strict_search' - (since 23.0.0) Whether the search pattern is full string or partial search
9999
* @psalm-param array{escape_like_param?: bool, limit?: int, offset?: int, enumeration?: bool, fullmatch?: bool, strict_search?: bool} $options
100100
* @return array an array of contacts which are arrays of key-value-pairs

lib/public/DB/Exception.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class Exception extends BaseException {
111111
public const REASON_NON_UNIQUE_FIELD_NAME = 10;
112112

113113
/**
114-
* A not null contraint was violated
114+
* A not null constraint was violated
115115
*
116116
* @since 21.0.0
117117
*/

0 commit comments

Comments
 (0)