@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | /** |
| 39 | 39 | * Factory method for the lost password form |
| 40 | 40 | * |
| 41 | - * @return Form Returns the lost password form |
|
| 41 | + * @return LDAPSecurityController Returns the lost password form |
|
| 42 | 42 | */ |
| 43 | 43 | public function ChangePasswordForm() |
| 44 | 44 | { |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | /** |
| 104 | - * @param null $action |
|
| 104 | + * @param string $action |
|
| 105 | 105 | * @return String |
| 106 | 106 | */ |
| 107 | 107 | public function Link($action = null) |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | /** |
| 10 | 10 | * Checks if the string is a valid guid in the format of A98C5A1E-A742-4808-96FA-6F409E799937 |
| 11 | 11 | * |
| 12 | - * @param $guid |
|
| 12 | + * @param string $guid |
|
| 13 | 13 | * @return bool |
| 14 | 14 | */ |
| 15 | 15 | public static function validGuid($guid) |
@@ -41,6 +41,9 @@ discard block |
||
| 41 | 41 | return strtoupper($hex_guid_to_guid_str); |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | + /** |
|
| 45 | + * @param string $str_guid |
|
| 46 | + */ |
|
| 44 | 47 | public static function str_to_hex_guid($str_guid, $escape = false) |
| 45 | 48 | { |
| 46 | 49 | $str_guid = str_replace('-', '', $str_guid); |
@@ -87,6 +90,10 @@ discard block |
||
| 87 | 90 | } |
| 88 | 91 | |
| 89 | 92 | // Converts a little-endian hex-number to one, that 'hexdec' can convert |
| 93 | + |
|
| 94 | + /** |
|
| 95 | + * @param string $hex |
|
| 96 | + */ |
|
| 90 | 97 | public static function little_endian($hex) |
| 91 | 98 | { |
| 92 | 99 | $result = ''; |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | * Note that these get cached in-memory per-request for performance to avoid re-querying for the same results. |
| 193 | 193 | * |
| 194 | 194 | * @param string $dn |
| 195 | - * @param array $attributes List of specific AD attributes to return. Empty array means return everything. |
|
| 195 | + * @param string[] $attributes List of specific AD attributes to return. Empty array means return everything. |
|
| 196 | 196 | * @return array |
| 197 | 197 | */ |
| 198 | 198 | public function getNestedGroups($dn, $attributes = array()) |
@@ -376,7 +376,7 @@ discard block |
||
| 376 | 376 | * @param Member |
| 377 | 377 | * @param array|null $data If passed, this is pre-existing AD attribute data to update the Member with. |
| 378 | 378 | * If not given, the data will be looked up by the user's GUID. |
| 379 | - * @return bool |
|
| 379 | + * @return false|null |
|
| 380 | 380 | */ |
| 381 | 381 | public function updateMemberFromLDAP(Member $member, $data = null) |
| 382 | 382 | { |
@@ -547,7 +547,7 @@ discard block |
||
| 547 | 547 | * @param Group $group An existing Group or a new Group object |
| 548 | 548 | * @param array $data LDAP group object data |
| 549 | 549 | * |
| 550 | - * @return bool |
|
| 550 | + * @return false|null |
|
| 551 | 551 | */ |
| 552 | 552 | public function updateGroupFromLDAP(Group $group, $data) |
| 553 | 553 | { |
@@ -52,6 +52,9 @@ |
||
| 52 | 52 | $this->log(sprintf('Done. Migrated %s Member records. Duration: %s seconds', $count, round($end, 0))); |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | + /** |
|
| 56 | + * @param string $message |
|
| 57 | + */ |
|
| 55 | 58 | protected function log($message) |
| 56 | 59 | { |
| 57 | 60 | $message = sprintf('[%s] ', date('Y-m-d H:i:s')) . $message; |
@@ -52,6 +52,9 @@ |
||
| 52 | 52 | $this->log(sprintf('Done. Migrated %s Member records. Duration: %s seconds', $count, round($end, 0))); |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | + /** |
|
| 56 | + * @param string $message |
|
| 57 | + */ |
|
| 55 | 58 | protected function log($message) |
| 56 | 59 | { |
| 57 | 60 | $message = sprintf('[%s] ', date('Y-m-d H:i:s')) . $message; |
@@ -52,6 +52,9 @@ |
||
| 52 | 52 | $this->log(sprintf('Done. Migrated %s Member records. Duration: %s seconds', $count, round($end, 0))); |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | + /** |
|
| 56 | + * @param string $message |
|
| 57 | + */ |
|
| 55 | 58 | protected function log($message) |
| 56 | 59 | { |
| 57 | 60 | $message = sprintf('[%s] ', date('Y-m-d H:i:s')) . $message; |