Skip to content

Commit 7b678c2

Browse files
committed
fix phpstan errors
1 parent 804729e commit 7b678c2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

resources/lib/UnityLDAP.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -464,31 +464,31 @@ public function getUserEntry($uid)
464464
{
465465
$uid = ldap_escape($uid, "", LDAP_ESCAPE_DN);
466466
return $this->getEntry(
467-
unityLDAP::RDN . "=$uid," . CONFIG["ldap"]["user_ou"],
467+
UnityLDAP::RDN . "=$uid," . CONFIG["ldap"]["user_ou"],
468468
);
469469
}
470470

471471
public function getGroupEntry($gid)
472472
{
473473
$gid = ldap_escape($gid, "", LDAP_ESCAPE_DN);
474474
return $this->getEntry(
475-
unityLDAP::RDN . "=$gid," . CONFIG["ldap"]["group_ou"],
475+
UnityLDAP::RDN . "=$gid," . CONFIG["ldap"]["group_ou"],
476476
);
477477
}
478478

479479
public function getPIGroupEntry($gid)
480480
{
481481
$gid = ldap_escape($gid, "", LDAP_ESCAPE_DN);
482482
return $this->getEntry(
483-
unityLDAP::RDN . "=$gid," . CONFIG["ldap"]["pigroup_ou"],
483+
UnityLDAP::RDN . "=$gid," . CONFIG["ldap"]["pigroup_ou"],
484484
);
485485
}
486486

487487
public function getOrgGroupEntry($gid)
488488
{
489489
$gid = ldap_escape($gid, "", LDAP_ESCAPE_DN);
490490
return $this->getEntry(
491-
unityLDAP::RDN . "=$gid," . CONFIG["ldap"]["orggroup_ou"],
491+
UnityLDAP::RDN . "=$gid," . CONFIG["ldap"]["orggroup_ou"],
492492
);
493493
}
494494
}

resources/lib/UnityOrg.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function inOrg($user, $ignorecache = false)
5050

5151
public function getOrgMembers($ignorecache = false)
5252
{
53-
$members = $this->getGroupMemberUIDs($ignorecache);
53+
$members = $this->getOrgMemberUIDs($ignorecache);
5454
$out = [];
5555
foreach ($members as $member) {
5656
$user_obj = new UnityUser(

0 commit comments

Comments
 (0)