doc fixes and removal of unnecessary use statements

remotes/origin/fix-10825
Arthur Schiwon 11 years ago
parent 6c335ee6fc
commit 9668405ec7
  1. 1
      apps/user_ldap/command/checkuser.php
  2. 9
      apps/user_ldap/command/showremnants.php
  3. 2
      apps/user_ldap/lib/jobs/cleanup.php
  4. 2
      apps/user_ldap/lib/user/offlineuser.php
  5. 2
      apps/user_ldap/user_ldap.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;

@ -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;

@ -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));
}
/**

@ -67,7 +67,7 @@ class OfflineUser {
*/
protected $db;
/**
* @var OCA\User_LDAP\Mapping\UserMapping
* @var \OCA\User_LDAP\Mapping\UserMapping
*/
protected $mapping;

@ -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
*/

Loading…
Cancel
Save