Code Duplication    Length = 6-6 lines in 2 locations

apps/user_ldap/lib/GroupPluginManager.php 1 location

@@ 56-61 (lines=6) @@
53
		$respondToActions = $plugin->respondToActions();
54
		$this->respondToActions |= $respondToActions;
55
56
		foreach($this->which as $action => $v) {
57
			if ((bool)($respondToActions & $action)) {
58
				$this->which[$action] = $plugin;
59
				\OC::$server->getLogger()->debug("Registered action ".$action." to plugin ".get_class($plugin), ['app' => 'user_ldap']);
60
			}
61
		}
62
	}
63
64
	/**

apps/user_ldap/lib/UserPluginManager.php 1 location

@@ 61-66 (lines=6) @@
58
		$respondToActions = $plugin->respondToActions();
59
		$this->respondToActions |= $respondToActions;
60
61
		foreach($this->which as $action => $v) {
62
			if (is_int($action) && (bool)($respondToActions & $action)) {
63
				$this->which[$action] = $plugin;
64
				\OC::$server->getLogger()->debug("Registered action ".$action." to plugin ".get_class($plugin), ['app' => 'user_ldap']);
65
			}
66
		}
67
		if (method_exists($plugin,'deleteUser')) {
68
			$this->which['deleteUser'] = $plugin;
69
			\OC::$server->getLogger()->debug("Registered action deleteUser to plugin ".get_class($plugin), ['app' => 'user_ldap']);