Skip to content

Commit d10264f

Browse files
luzpazcome-nc
authored 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 ed2b28b commit d10264f

File tree

20 files changed

+26
-26
lines changed

20 files changed

+26
-26
lines changed

lib/private/Preview/Generator.php

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

280280
// Try to get the extension.
281281
try {
282-
$ext = $this->getExtention($preview->dataMimeType());
282+
$ext = $this->getExtension($preview->dataMimeType());
283283
} catch (\InvalidArgumentException $e) {
284284
// Just continue to the next iteration if this preview doesn't have a valid mimetype
285285
continue;
@@ -446,9 +446,9 @@ private function getMaxPreview(ISimpleFolder $previewFolder, File $file, $mimeTy
446446
continue;
447447
}
448448

449-
// Try to get the extention.
449+
// Try to get the extension.
450450
try {
451-
$ext = $this->getExtention($preview->dataMimeType());
451+
$ext = $this->getExtension($preview->dataMimeType());
452452
} catch (\InvalidArgumentException $e) {
453453
// Just continue to the next iteration if this preview doesn't have a valid mimetype
454454
continue;
@@ -497,7 +497,7 @@ private function generatePath($width, $height, $crop, $mimeType, $prefix) {
497497
$path .= '-crop';
498498
}
499499

500-
$ext = $this->getExtention($mimeType);
500+
$ext = $this->getExtension($mimeType);
501501
$path .= '.' . $ext;
502502
return $path;
503503
}
@@ -693,7 +693,7 @@ private function getPreviewFolder(File $file) {
693693
* @return null|string
694694
* @throws \InvalidArgumentException
695695
*/
696-
private function getExtention($mimeType) {
696+
private function getExtension($mimeType) {
697697
switch ($mimeType) {
698698
case 'image/png':
699699
return 'png';

lib/public/Accounts/IAccount.php

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

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

lib/public/Accounts/IAccountPropertyCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
*/
3939
interface IAccountPropertyCollection extends JsonSerializable {
4040
/**
41-
* retuns the collection name
41+
* returns the collection name
4242
*
4343
* @since 22.0.0
4444
*/

lib/public/AppFramework/AuthPublicShareController.php

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

131131
/**
132-
* Function called after successfull authentication
132+
* Function called after successful authentication
133133
*
134134
* You can use this to do some logging for example
135135
*

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
@@ -95,7 +95,7 @@ interface IManager {
9595
* - 'limit' - Set a numeric limit for the search results
9696
* - 'offset' - Set the offset for the limited search results
9797
* - 'enumeration' - (since 23.0.0) Whether user enumeration on system address book is allowed
98-
* - 'fullmatch' - (since 23.0.0) Whether matching on full detail in system addresss book is allowed
98+
* - 'fullmatch' - (since 23.0.0) Whether matching on full detail in system address book is allowed
9999
* - 'strict_search' - (since 23.0.0) Whether the search pattern is full string or partial search
100100
* @psalm-param array{types?: bool, escape_like_param?: bool, limit?: int, offset?: int, enumeration?: bool, fullmatch?: bool, strict_search?: bool} $options
101101
* @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
@@ -110,7 +110,7 @@ class Exception extends BaseException {
110110
public const REASON_NON_UNIQUE_FIELD_NAME = 10;
111111

112112
/**
113-
* A not null contraint was violated
113+
* A not null constraint was violated
114114
*
115115
* @since 21.0.0
116116
*/

lib/public/DB/QueryBuilder/IQueryBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ public function set($key, $value);
620620
* ->from('users', 'u')
621621
* ->where('u.id = ?');
622622
*
623-
* // You can optionally programatically build and/or expressions
623+
* // You can optionally programmatically build and/or expressions
624624
* $qb = $conn->getQueryBuilder();
625625
*
626626
* $or = $qb->expr()->orx();

0 commit comments

Comments
 (0)