Completed
Pull Request — master (#117)
by Mateusz
07:37
created
code/control/LDAPSecurityController.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
code/model/LDAPUtil.php 1 patch
Doc Comments   +8 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 = '';
Please login to merge, or discard this patch.
code/tasks/LDAPMigrateExistingMembersTask.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -52,6 +52,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
code/services/LDAPService.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
      * Note that these get cached in-memory per-request for performance to avoid re-querying for the same results.
274 274
      *
275 275
      * @param string $dn
276
-     * @param array $attributes List of specific AD attributes to return. Empty array means return everything.
276
+     * @param string[] $attributes List of specific AD attributes to return. Empty array means return everything.
277 277
      * @return array
278 278
      */
279 279
     public function getNestedGroups($dn, $attributes = [])
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
      * @param Member
478 478
      * @param array|null $data If passed, this is pre-existing AD attribute data to update the Member with.
479 479
      *            If not given, the data will be looked up by the user's GUID.
480
-     * @return bool
480
+     * @return false|null
481 481
      */
482 482
     public function updateMemberFromLDAP(Member $member, $data = null)
483 483
     {
@@ -657,7 +657,7 @@  discard block
 block discarded – undo
657 657
      * @param Group $group An existing Group or a new Group object
658 658
      * @param array $data LDAP group object data
659 659
      *
660
-     * @return bool
660
+     * @return false|null
661 661
      */
662 662
     public function updateGroupFromLDAP(Group $group, $data)
663 663
     {
Please login to merge, or discard this patch.
code/tasks/LDAPGroupSyncTask.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -115,6 +115,9 @@
 block discarded – undo
115 115
         ));
116 116
     }
117 117
 
118
+    /**
119
+     * @param string $message
120
+     */
118 121
     protected function log($message)
119 122
     {
120 123
         $message = sprintf('[%s] ', date('Y-m-d H:i:s')) . $message;
Please login to merge, or discard this patch.
code/tasks/LDAPMemberSyncTask.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -111,6 +111,9 @@
 block discarded – undo
111 111
         ));
112 112
     }
113 113
 
114
+    /**
115
+     * @param string $message
116
+     */
114 117
     protected function log($message)
115 118
     {
116 119
         $message = sprintf('[%s] ', date('Y-m-d H:i:s')) . $message;
Please login to merge, or discard this patch.