Skip to content

Commit 290411d

Browse files
blizzzrotdrop
authored andcommitted
adjustemens and cleanup to current codebase
Signed-off-by: Arthur Schiwon <[email protected]>
1 parent a618ce6 commit 290411d

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

lib/AppInfo/Application.php

-11
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@
1616
use OCP\AppFramework\Bootstrap\IRegistrationContext;
1717

1818
class Application extends App implements IBootstrap {
19-
/** @var LDAPUserManager */
20-
protected $ldapUserManager;
21-
22-
/** @var LDAPGroupManager */
23-
protected $ldapGroupManager;
24-
2519
public const APP_ID = 'ldap_write_support';
2620

2721
public function __construct(array $urlParams = []) {
@@ -34,10 +28,5 @@ public function register(IRegistrationContext $context): void {
3428
}
3529

3630
public function boot(IBootContext $context): void {
37-
$s->getUserSession(),
38-
$provider,
39-
$c->query(Configuration::class),
40-
$s->getL10N(self::APP_ID),
41-
$s->getLogger()
4231
}
4332
}

lib/LDAPGroupManager.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
use OCA\LdapWriteSupport\Service\Configuration;
3232
use OCA\User_LDAP\Group_Proxy;
3333
use OCA\User_LDAP\ILDAPGroupPlugin;
34-
use OCA\User_LDAP\LDAPProvider;
35-
use OCP\AppFramework\QueryException;
3634
use OCP\IGroupManager;
3735
use OCP\IL10N;
3836
use OCP\ILogger;
@@ -41,6 +39,8 @@
4139
use OCP\LDAP\ILDAPProvider;
4240

4341
class LDAPGroupManager implements ILDAPGroupPlugin {
42+
/** @var Configuration */
43+
protected $configuration;
4444

4545
/** @var ILDAPProvider */
4646
private $ldapProvider;
@@ -175,7 +175,6 @@ public function addToGroup($uid, $gid) {
175175
break;
176176
case 'gidNumber':
177177
throw new Exception('Cannot add to group when gidNumber is used as relation');
178-
break;
179178
}
180179

181180
if (!$ret = ldap_mod_add($connection, $groupDN, $entry)) {
@@ -215,7 +214,6 @@ public function removeFromGroup($uid, $gid) {
215214
break;
216215
case 'gidNumber':
217216
throw new Exception('Cannot remove from group when gidNumber is used as relation');
218-
break;
219217
}
220218

221219
if (!$ret = ldap_mod_del($connection, $groupDN, $entry)) {

0 commit comments

Comments
 (0)