summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/lib/Controller/RenewPasswordController.php2
-rw-r--r--apps/user_ldap/lib/Jobs/UpdateGroups.php14
2 files changed, 8 insertions, 8 deletions
diff --git a/apps/user_ldap/lib/Controller/RenewPasswordController.php b/apps/user_ldap/lib/Controller/RenewPasswordController.php
index 499a25e0d28..3395d10c488 100644
--- a/apps/user_ldap/lib/Controller/RenewPasswordController.php
+++ b/apps/user_ldap/lib/Controller/RenewPasswordController.php
@@ -54,7 +54,7 @@ class RenewPasswordController extends Controller {
* @param IConfig $config
* @param IURLGenerator $urlGenerator
*/
- function __construct($appName, IRequest $request, IUserManager $userManager,
+ public function __construct($appName, IRequest $request, IUserManager $userManager,
IConfig $config, IL10N $l10n, ISession $session, IURLGenerator $urlGenerator) {
parent::__construct($appName, $request);
$this->userManager = $userManager;
diff --git a/apps/user_ldap/lib/Jobs/UpdateGroups.php b/apps/user_ldap/lib/Jobs/UpdateGroups.php
index 810d88b3ccc..6241483cb92 100644
--- a/apps/user_ldap/lib/Jobs/UpdateGroups.php
+++ b/apps/user_ldap/lib/Jobs/UpdateGroups.php
@@ -61,7 +61,7 @@ class UpdateGroups extends \OC\BackgroundJob\TimedJob {
self::updateGroups();
}
- static public function updateGroups() {
+ public static function updateGroups() {
\OCP\Util::writeLog('user_ldap', 'Run background job "updateGroups"', ILogger::DEBUG);
$knownGroups = array_keys(self::getKnownGroups());
@@ -84,7 +84,7 @@ class UpdateGroups extends \OC\BackgroundJob\TimedJob {
/**
* @return int
*/
- static private function getRefreshInterval() {
+ private static function getRefreshInterval() {
//defaults to every hour
return \OC::$server->getConfig()->getAppValue('user_ldap', 'bgjRefreshInterval', 3600);
}
@@ -92,7 +92,7 @@ class UpdateGroups extends \OC\BackgroundJob\TimedJob {
/**
* @param string[] $groups
*/
- static private function handleKnownGroups($groups) {
+ private static function handleKnownGroups($groups) {
\OCP\Util::writeLog('user_ldap', 'bgJ "updateGroups" – Dealing with known Groups.', ILogger::DEBUG);
$query = \OC_DB::prepare('
UPDATE `*PREFIX*ldap_group_members`
@@ -130,7 +130,7 @@ class UpdateGroups extends \OC\BackgroundJob\TimedJob {
/**
* @param string[] $createdGroups
*/
- static private function handleCreatedGroups($createdGroups) {
+ private static function handleCreatedGroups($createdGroups) {
\OCP\Util::writeLog('user_ldap', 'bgJ "updateGroups" – dealing with created Groups.', ILogger::DEBUG);
$query = \OC_DB::prepare('
INSERT
@@ -152,7 +152,7 @@ class UpdateGroups extends \OC\BackgroundJob\TimedJob {
/**
* @param string[] $removedGroups
*/
- static private function handleRemovedGroups($removedGroups) {
+ private static function handleRemovedGroups($removedGroups) {
\OCP\Util::writeLog('user_ldap', 'bgJ "updateGroups" – dealing with removed groups.', ILogger::DEBUG);
$query = \OC_DB::prepare('
DELETE
@@ -173,7 +173,7 @@ class UpdateGroups extends \OC\BackgroundJob\TimedJob {
/**
* @return \OCA\User_LDAP\Group_LDAP|\OCA\User_LDAP\Group_Proxy
*/
- static private function getGroupBE() {
+ private static function getGroupBE() {
if (!is_null(self::$groupBE)) {
return self::$groupBE;
}
@@ -209,7 +209,7 @@ class UpdateGroups extends \OC\BackgroundJob\TimedJob {
/**
* @return array
*/
- static private function getKnownGroups() {
+ private static function getKnownGroups() {
if (is_array(self::$groupsFromDB)) {
return self::$groupsFromDB;
}