aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorluz paz <luzpaz@github.com>2022-07-28 07:11:38 -0400
committernextcloud-command <nextcloud-command@users.noreply.github.com>2022-09-05 12:59:54 +0000
commit9d26671f05275055619960a66981201ed660bdd2 (patch)
treee3d4f35333192763a5fbbb0ebcbf4e6125de221b /apps/user_ldap
parentf496e471e06d546179e3f12af1e6cc9319db9bb3 (diff)
downloadnextcloud-server-9d26671f05275055619960a66981201ed660bdd2.tar.gz
nextcloud-server-9d26671f05275055619960a66981201ed660bdd2.zip
Fix typos in apps/ subdirectory
Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/` Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/ajax/testConfiguration.php2
-rw-r--r--apps/user_ldap/js/wizard/view.js2
-rw-r--r--apps/user_ldap/lib/Access.php8
-rw-r--r--apps/user_ldap/lib/Group_LDAP.php2
-rw-r--r--apps/user_ldap/lib/PagedResults/IAdapter.php2
-rw-r--r--apps/user_ldap/lib/User/Manager.php4
-rw-r--r--apps/user_ldap/lib/Wizard.php4
-rw-r--r--apps/user_ldap/tests/Group_LDAPTest.php8
-rw-r--r--apps/user_ldap/tests/Mapping/AbstractMappingTest.php2
-rw-r--r--apps/user_ldap/tests/User/UserTest.php2
10 files changed, 18 insertions, 18 deletions
diff --git a/apps/user_ldap/ajax/testConfiguration.php b/apps/user_ldap/ajax/testConfiguration.php
index a5f41e93a92..9d89b641d66 100644
--- a/apps/user_ldap/ajax/testConfiguration.php
+++ b/apps/user_ldap/ajax/testConfiguration.php
@@ -47,7 +47,7 @@ try {
if ($configurationOk) {
//Configuration is okay
/*
- * Clossing the session since it won't be used from this point on. There might be a potential
+ * Closing the session since it won't be used from this point on. There might be a potential
* race condition if a second request is made: either this request or the other might not
* contact the LDAP backup server the first time when it should, but there shouldn't be any
* problem with that other than the extra connection.
diff --git a/apps/user_ldap/js/wizard/view.js b/apps/user_ldap/js/wizard/view.js
index 1a89eba3515..5e8b70f3162 100644
--- a/apps/user_ldap/js/wizard/view.js
+++ b/apps/user_ldap/js/wizard/view.js
@@ -40,7 +40,7 @@ OCA = OCA || {};
},
/**
- * applies click events to the forward and backword buttons
+ * applies click events to the forward and backward buttons
*/
initControls: function() {
var view = this;
diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php
index 29d60817c02..cec192721a5 100644
--- a/apps/user_ldap/lib/Access.php
+++ b/apps/user_ldap/lib/Access.php
@@ -1751,7 +1751,7 @@ class Access extends LDAPUtility {
/**
* converts a binary ObjectGUID into a string representation
*
- * @param string $oguid the ObjectGUID in it's binary form as retrieved from AD
+ * @param string $oguid the ObjectGUID in its binary form as retrieved from AD
* @link https://www.php.net/manual/en/function.ldap-get-values-len.php#73198
*/
private function convertObjectGUID2Str(string $oguid): string {
@@ -1777,8 +1777,8 @@ class Access extends LDAPUtility {
/**
* the first three blocks of the string-converted GUID happen to be in
* reverse order. In order to use it in a filter, this needs to be
- * corrected. Furthermore the dashes need to be replaced and \\ preprended
- * to every two hax figures.
+ * corrected. Furthermore the dashes need to be replaced and \\ prepended
+ * to every two hex figures.
*
* If an invalid string is passed, it will be returned without change.
*/
@@ -2003,7 +2003,7 @@ class Access extends LDAPUtility {
$this->logger->debug('Ready for a paged search', ['app' => 'user_ldap']);
}
/* ++ Fixing RHDS searches with pages with zero results ++
- * We coudn't get paged searches working with our RHDS for login ($limit = 0),
+ * We couldn't get paged searches working with our RHDS for login ($limit = 0),
* due to pages with zero results.
* So we added "&& !empty($this->lastCookie)" to this test to ignore pagination
* if we don't have a previous paged search.
diff --git a/apps/user_ldap/lib/Group_LDAP.php b/apps/user_ldap/lib/Group_LDAP.php
index 5e3d3afc140..5072f9d3f74 100644
--- a/apps/user_ldap/lib/Group_LDAP.php
+++ b/apps/user_ldap/lib/Group_LDAP.php
@@ -245,7 +245,7 @@ class Group_LDAP extends BackendUtility implements GroupInterface, IGroupLDAP, I
private function _groupMembers(string $dnGroup, ?array &$seen = null): array {
if ($seen === null) {
$seen = [];
- // the root entry has to be marked as processed to avoind infinit loops,
+ // the root entry has to be marked as processed to avoid infinite loops,
// but not included in the results laters on
$excludeFromResult = $dnGroup;
}
diff --git a/apps/user_ldap/lib/PagedResults/IAdapter.php b/apps/user_ldap/lib/PagedResults/IAdapter.php
index 31338126e40..62a0d0440c5 100644
--- a/apps/user_ldap/lib/PagedResults/IAdapter.php
+++ b/apps/user_ldap/lib/PagedResults/IAdapter.php
@@ -80,7 +80,7 @@ interface IAdapter {
public function getResponseCallArgs(array $originalArgs): array;
/**
- * the adapter should do it's LDAP function call and return success state
+ * the adapter should do its LDAP function call and return success state
*
* @param resource|\LDAP\Connection $link LDAP resource
* @return bool
diff --git a/apps/user_ldap/lib/User/Manager.php b/apps/user_ldap/lib/User/Manager.php
index 655463a0ecd..b1915ab57b5 100644
--- a/apps/user_ldap/lib/User/Manager.php
+++ b/apps/user_ldap/lib/User/Manager.php
@@ -209,7 +209,7 @@ class Manager {
}
/**
- * @brief returns a User object by it's Nextcloud username
+ * @brief returns a User object by its Nextcloud username
* @param string $id the DN or username of the user
* @return \OCA\User_LDAP\User\User|\OCA\User_LDAP\User\OfflineUser|null
*/
@@ -226,7 +226,7 @@ class Manager {
}
/**
- * @brief returns a User object by it's DN or Nextcloud username
+ * @brief returns a User object by its DN or Nextcloud username
* @param string $id the DN or username of the user
* @return \OCA\User_LDAP\User\User|\OCA\User_LDAP\User\OfflineUser|null
* @throws \Exception when connection could not be established
diff --git a/apps/user_ldap/lib/Wizard.php b/apps/user_ldap/lib/Wizard.php
index e85e65a7d70..06b50448038 100644
--- a/apps/user_ldap/lib/Wizard.php
+++ b/apps/user_ldap/lib/Wizard.php
@@ -682,7 +682,7 @@ class Wizard extends LDAPUtility {
'Wiz: trying port '. $p . ', TLS '. $t,
['app' => 'user_ldap']
);
- //connectAndBind may throw Exception, it needs to be catched by the
+ //connectAndBind may throw Exception, it needs to be caught by the
//callee of this method
try {
@@ -1077,7 +1077,7 @@ class Wizard extends LDAPUtility {
}
$this->logger->debug(
- 'Wiz: Attemping to Bind',
+ 'Wiz: Attempting to Bind',
['app' => 'user_ldap']
);
//interesting part: do the bind!
diff --git a/apps/user_ldap/tests/Group_LDAPTest.php b/apps/user_ldap/tests/Group_LDAPTest.php
index 6204c22cb9e..236dcee3bb7 100644
--- a/apps/user_ldap/tests/Group_LDAPTest.php
+++ b/apps/user_ldap/tests/Group_LDAPTest.php
@@ -154,7 +154,7 @@ class Group_LDAPTest extends TestCase {
->method('readAttribute')
->willReturnCallback(function ($name) {
//the search operation will call readAttribute, thus we need
- //to anaylze the "dn". All other times we just need to return
+ //to analyze the "dn". All other times we just need to return
//something that is neither null or false, but once an array
//with the users in the group – so we do so all other times for
//simplicicity.
@@ -724,7 +724,7 @@ class Group_LDAPTest extends TestCase {
}
/**
- * tests that a user listing is complete, if all it's members have the group
+ * tests that a user listing is complete, if all its members have the group
* as their primary.
*/
public function testUsersInGroupPrimaryMembersOnly() {
@@ -770,7 +770,7 @@ class Group_LDAPTest extends TestCase {
}
/**
- * tests that a user listing is complete, if all it's members have the group
+ * tests that a user listing is complete, if all its members have the group
* as their primary.
*/
public function testUsersInGroupPrimaryAndUnixMembers() {
@@ -814,7 +814,7 @@ class Group_LDAPTest extends TestCase {
}
/**
- * tests that a user counting is complete, if all it's members have the group
+ * tests that a user counting is complete, if all its members have the group
* as their primary.
*/
public function testCountUsersInGroupPrimaryMembersOnly() {
diff --git a/apps/user_ldap/tests/Mapping/AbstractMappingTest.php b/apps/user_ldap/tests/Mapping/AbstractMappingTest.php
index 0d21172445f..8439bcc57c4 100644
--- a/apps/user_ldap/tests/Mapping/AbstractMappingTest.php
+++ b/apps/user_ldap/tests/Mapping/AbstractMappingTest.php
@@ -82,7 +82,7 @@ abstract class AbstractMappingTest extends \Test\TestCase {
}
/**
- * initalizes environment for a test run and returns an array with
+ * initializes environment for a test run and returns an array with
* test objects. Preparing environment means that all mappings are cleared
* first and then filled with test entries.
* @return array 0 = \OCA\User_LDAP\Mapping\AbstractMapping, 1 = array of
diff --git a/apps/user_ldap/tests/User/UserTest.php b/apps/user_ldap/tests/User/UserTest.php
index d2113de842e..470b0829868 100644
--- a/apps/user_ldap/tests/User/UserTest.php
+++ b/apps/user_ldap/tests/User/UserTest.php
@@ -493,7 +493,7 @@ class UserTest extends \Test\TestCase {
$this->user->updateQuota();
}
- //the testUpdateAvatar series also implicitely tests getAvatarImage
+ //the testUpdateAvatar series also implicitly tests getAvatarImage
public function XtestUpdateAvatarJpegPhotoProvided() {
$this->access->expects($this->once())
->method('readAttribute')