Skip to content

Commit d55a7c6

Browse files
szaimencome-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 Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: Simon L <szaimen@e.mail.de> Co-Authored-By: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
1 parent 14cb58c commit d55a7c6

File tree

19 files changed

+22
-22
lines changed

19 files changed

+22
-22
lines changed

lib/private/Preview/Generator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ private function generatePath($width, $height, $crop, $max, $mimeType, $prefix)
446446
$path .= '-max';
447447
}
448448

449-
$ext = $this->getExtention($mimeType);
449+
$ext = $this->getExtension($mimeType);
450450
$path .= '.' . $ext;
451451
return $path;
452452
}
@@ -647,7 +647,7 @@ private function getPreviewFolder(File $file) {
647647
* @return null|string
648648
* @throws \InvalidArgumentException
649649
*/
650-
private function getExtention($mimeType) {
650+
private function getExtension($mimeType) {
651651
switch ($mimeType) {
652652
case 'image/png':
653653
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/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();

lib/public/DirectEditing/IEditor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function isSecure(): bool;
8787
* Return a template response for displaying the editor
8888
*
8989
* open can only be called once when the client requests the editor with a one-time-use token
90-
* For handling editing and later requests, editors need to impelement their own token handling and take care of invalidation
90+
* For handling editing and later requests, editors need to implement their own token handling and take care of invalidation
9191
*
9292
* 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
9393
*

0 commit comments

Comments
 (0)