@@ -62,7 +62,7 @@ |
||
62 | 62 | * |
63 | 63 | * @param Integer $groupId Id of project |
64 | 64 | * |
65 | - * @return Array |
|
65 | + * @return integer |
|
66 | 66 | */ |
67 | 67 | protected function getDbGroupMembersIds($groupId) |
68 | 68 | { |
@@ -75,6 +75,9 @@ |
||
75 | 75 | return new LDAP_SearchPeopleResultPresenter($ldap_result->getCommonName(), PFUser::DEFAULT_AVATAR_URL, $directory_uri); |
76 | 76 | } |
77 | 77 | |
78 | + /** |
|
79 | + * @param string $value |
|
80 | + */ |
|
78 | 81 | private function buildLinkToDirectory(LDAPResult $lr, $value) { |
79 | 82 | include_once($GLOBALS['Language']->getContent('directory_redirect', 'en_US', 'ldap')); |
80 | 83 | if(function_exists('custom_build_link_to_directory')) { |
@@ -34,7 +34,7 @@ |
||
34 | 34 | * |
35 | 35 | * @param PFUser $user Suspended user after LDAP daily synchro |
36 | 36 | * |
37 | - * @return Array |
|
37 | + * @return Project[] |
|
38 | 38 | */ |
39 | 39 | private function getProjectsForUser(PFUser $user) { |
40 | 40 | return $this->projectManager->getActiveProjectsForUser($user); |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * @param Integer $ugroupId Codendi Group ID |
53 | 53 | * @param Integer $userId User ID |
54 | 54 | * |
55 | - * @return Boolean |
|
55 | + * @return boolean|null |
|
56 | 56 | */ |
57 | 57 | protected function addUserToGroup($ugroupId, $userId) |
58 | 58 | { |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * @param Integer $ugroupId Codendi Group ID |
66 | 66 | * @param Integer $userId User ID |
67 | 67 | * |
68 | - * @return Boolean |
|
68 | + * @return boolean|null |
|
69 | 69 | */ |
70 | 70 | protected function removeUserFromGroup($ugroupId, $userId) |
71 | 71 | { |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | /** |
87 | 87 | * Get LDAPResult object corresponding to an LDAP ID |
88 | 88 | * |
89 | - * @param $ldapId The LDAP identifier |
|
89 | + * @param string $ldapId The LDAP identifier |
|
90 | 90 | * @return LDAPResult |
91 | 91 | */ |
92 | 92 | function getLdapFromLdapId($ldapId) { |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | * Return LDAP logins stored in DB corresponding to given userIds. |
203 | 203 | * |
204 | 204 | * @param Array $userIds Array of user ids |
205 | - * @return Array ldap logins |
|
205 | + * @return DataAccessResult ldap logins |
|
206 | 206 | */ |
207 | 207 | function getLdapLoginFromUserIds(array $userIds) { |
208 | 208 | $dao = $this->getDao(); |
@@ -58,6 +58,7 @@ |
||
58 | 58 | /** |
59 | 59 | * Return the sync attributes |
60 | 60 | * |
61 | + * @param LDAP $ldap |
|
61 | 62 | * @return array |
62 | 63 | */ |
63 | 64 | public function getSyncAttributes($ldap) { |
@@ -510,6 +510,9 @@ discard block |
||
510 | 510 | print '</TR>'; |
511 | 511 | } |
512 | 512 | |
513 | + /** |
|
514 | + * @param LDAPResult $lr |
|
515 | + */ |
|
513 | 516 | function buildLinkToDirectory(&$lr, $value='') { |
514 | 517 | if($value === '') { |
515 | 518 | $value = $lr->getLogin(); |
@@ -849,7 +852,7 @@ discard block |
||
849 | 852 | * |
850 | 853 | * @param Array $params |
851 | 854 | * |
852 | - * @return void |
|
855 | + * @return boolean|null |
|
853 | 856 | */ |
854 | 857 | function codendi_daily_start($params) { |
855 | 858 | if ($GLOBALS['sys_auth_type'] == 'ldap' && $this->isDailySyncEnabled()) { |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | /** |
67 | 67 | * Return true if there is no entries in the result set. |
68 | 68 | * |
69 | - * @return int |
|
69 | + * @return boolean |
|
70 | 70 | */ |
71 | 71 | function isEmpty() { |
72 | 72 | return empty($this->list); |
@@ -215,6 +215,9 @@ discard block |
||
215 | 215 | return $this->get($this->ldapParams['eduid']); |
216 | 216 | } |
217 | 217 | |
218 | + /** |
|
219 | + * @return string|null |
|
220 | + */ |
|
218 | 221 | function getDn() { |
219 | 222 | return $this->info['dn']; |
220 | 223 | } |
@@ -54,6 +54,9 @@ |
||
54 | 54 | |
55 | 55 | private $expected; |
56 | 56 | |
57 | + /** |
|
58 | + * @param string $expected_cn |
|
59 | + */ |
|
57 | 60 | public function __construct($expected_cn) { |
58 | 61 | parent::__construct(); |
59 | 62 | $this->expected = $expected_cn; |