summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/user_ldap/command/checkuser.php1
-rw-r--r--apps/user_ldap/command/showremnants.php9
-rw-r--r--apps/user_ldap/lib/jobs/cleanup.php2
-rw-r--r--apps/user_ldap/lib/user/offlineuser.php2
-rw-r--r--apps/user_ldap/user_ldap.php2
5 files changed, 6 insertions, 10 deletions
diff --git a/apps/user_ldap/command/checkuser.php b/apps/user_ldap/command/checkuser.php
index f9065a7c8d6..202855e4853 100644
--- a/apps/user_ldap/command/checkuser.php
+++ b/apps/user_ldap/command/checkuser.php
@@ -15,7 +15,6 @@ use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use OCA\user_ldap\lib\user\User;
-use OCA\User_LDAP\lib\user\Manager;
use OCA\User_LDAP\lib\User\DeletedUsersIndex;
use OCA\User_LDAP\Mapping\UserMapping;
use OCA\user_ldap\lib\Helper as LDAPHelper;
diff --git a/apps/user_ldap/command/showremnants.php b/apps/user_ldap/command/showremnants.php
index 5b7322e7711..5cfab34ef95 100644
--- a/apps/user_ldap/command/showremnants.php
+++ b/apps/user_ldap/command/showremnants.php
@@ -9,25 +9,22 @@
namespace OCA\user_ldap\Command;
use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use OCA\user_ldap\lib\user\DeletedUsersIndex;
-use OCA\User_LDAP\lib\Connection;
-use OCA\User_LDAP\Mapping\UserMapping;
use OCP\IDateTimeFormatter;
class ShowRemnants extends Command {
- /** @var OCA\User_LDAP\lib\User\DeletedUsersIndex */
+ /** @var \OCA\User_LDAP\lib\User\DeletedUsersIndex */
protected $dui;
- /** @var OCP\IDateTimeFormatter */
+ /** @var \OCP\IDateTimeFormatter */
protected $dateFormatter;
/**
* @param OCA\user_ldap\lib\user\DeletedUsersIndex $dui
+ * @param OCP\IDateTimeFormatter $dateFormatter
*/
public function __construct(DeletedUsersIndex $dui, IDateTimeFormatter $dateFormatter) {
$this->dui = $dui;
diff --git a/apps/user_ldap/lib/jobs/cleanup.php b/apps/user_ldap/lib/jobs/cleanup.php
index b044f997aa9..7209126c82f 100644
--- a/apps/user_ldap/lib/jobs/cleanup.php
+++ b/apps/user_ldap/lib/jobs/cleanup.php
@@ -191,7 +191,7 @@ class CleanUp extends \OC\BackgroundJob\TimedJob {
* @return int
*/
private function getOffset() {
- return $this->ocConfig->getAppValue('user_ldap', 'cleanUpJobOffset', 0);
+ return intval($this->ocConfig->getAppValue('user_ldap', 'cleanUpJobOffset', 0));
}
/**
diff --git a/apps/user_ldap/lib/user/offlineuser.php b/apps/user_ldap/lib/user/offlineuser.php
index e5c87fd23fc..1833f4be968 100644
--- a/apps/user_ldap/lib/user/offlineuser.php
+++ b/apps/user_ldap/lib/user/offlineuser.php
@@ -67,7 +67,7 @@ class OfflineUser {
*/
protected $db;
/**
- * @var OCA\User_LDAP\Mapping\UserMapping
+ * @var \OCA\User_LDAP\Mapping\UserMapping
*/
protected $mapping;
diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php
index f9a39ddca17..051e760105b 100644
--- a/apps/user_ldap/user_ldap.php
+++ b/apps/user_ldap/user_ldap.php
@@ -68,7 +68,7 @@ class USER_LDAP extends BackendUtility implements \OCP\IUserBackend, \OCP\UserIn
* Check if the password is correct
* @param string $uid The username
* @param string $password The password
- * @return boolean
+ * @return false|string
*
* Check if the password is correct without logging in the user
*/