Completed
Push — master ( 1f8368...41aee1 )
by Patrick
04:33 queued 01:42
created
Auth/class.LDAPAuthenticator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -325,7 +325,7 @@
 block discarded – undo
325 325
 
326 326
     
327 327
     /**
328
-     * @param boolean|\Data\Filter $filter The filter to user when reading users
328
+     * @param \Data\Filter $filter The filter to user when reading users
329 329
      * @param boolean|array   $select The fields to return
330 330
      * @param boolean|integer $top The number of records to return
331 331
      * @param boolean|integer $skip The number of records to skip
Please login to merge, or discard this patch.
class.AuthProvider.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -253,10 +253,10 @@
 block discarded – undo
253 253
      * Get an array of Auth\PendingUser from a filtered set
254 254
      *
255 255
      * @param Data\Filter|boolean $filter The filter conditions or false to retreive all
256
-     * @param array|boolean $select The user fields to obtain or false to obtain all
257
-     * @param integer|boolean $top The number of users to obtain or false to obtain all
258
-     * @param integer|boolean $skip The number of users to skip or false to skip none
259
-     * @param array|boolean $orderby The field to sort by and the method to sort or false to not sort
256
+     * @param boolean $select The user fields to obtain or false to obtain all
257
+     * @param boolean $top The number of users to obtain or false to obtain all
258
+     * @param boolean $skip The number of users to skip or false to skip none
259
+     * @param boolean $orderby The field to sort by and the method to sort or false to not sort
260 260
      * @param string|boolean $methodName The AuthMethod if information is desired only from a particular Auth\Authenticator
261 261
      *
262 262
      * @return array|boolean An array of Auth\PendingUser objects or false if no pending users were found
Please login to merge, or discard this patch.
Data/class.FilterClause.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -28,12 +28,18 @@  discard block
 block discarded – undo
28 28
         return substr($haystack, 0, strlen($needle)) === $needle;
29 29
     }
30 30
 
31
+    /**
32
+     * @param string $string
33
+     */
31 34
     protected function filterIsFunction($string)
32 35
     {
33 36
         return (self::str_startswith($string, 'substringof') || self::str_startswith($string, 'contains') ||
34 37
                 self::str_startswith($string, 'indexof'));
35 38
     }
36 39
 
40
+    /**
41
+     * @param string $op
42
+     */
37 43
     protected function odataOpToStd($op)
38 44
     {
39 45
         switch($op)
@@ -146,6 +152,9 @@  discard block
 block discarded – undo
146 152
         }
147 153
     }
148 154
 
155
+    /**
156
+     * @param string $op
157
+     */
149 158
     private function getMongoClauseArray($op, $var2)
150 159
     {
151 160
         return array($this->opToMongo($op)=>$var2);
Please login to merge, or discard this patch.
LDAP/class.LDAPServer.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
  * @author Chris Wright
7 7
  * @version 2.0
8 8
  * @param string $subject The subject string
9
- * @param bool $dn Treat subject as a DN if TRUE
10 9
  * @param string|array $ignore Set of characters to leave untouched
11 10
  * @return string The escaped string
12 11
  */
Please login to merge, or discard this patch.
Auth/class.Authenticator.php 1 patch
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -92,13 +92,13 @@  discard block
 block discarded – undo
92 92
     /**
93 93
      * Get the groups that match the filters
94 94
      *
95
-     * @param mixed $filter The filter to use to find a set of groups
95
+     * @param boolean $filter The filter to use to find a set of groups
96 96
      * @param mixed $select The list of fields to select
97 97
      * @param mixed $top The number of groups to select
98 98
      * @param mixed $skip The number of groups to skip
99 99
      * @param mixed $orderby The fields to sort by
100 100
      *
101
-     * @return array All groups that fit the filters
101
+     * @return boolean All groups that fit the filters
102 102
      *
103 103
      * @SuppressWarnings("UnusedFormalParameter")
104 104
      */
@@ -110,13 +110,13 @@  discard block
 block discarded – undo
110 110
     /**
111 111
      * Get the users that match the filters
112 112
      *
113
-     * @param mixed $filter The filter to use to find a set of users
113
+     * @param boolean $filter The filter to use to find a set of users
114 114
      * @param mixed $select The list of fields to select
115 115
      * @param mixed $top The number of users to select
116 116
      * @param mixed $skip The number of users to skip
117 117
      * @param mixed $orderby The fields to sort by
118 118
      *
119
-     * @return array All users that fit the filters
119
+     * @return boolean All users that fit the filters
120 120
      *
121 121
      * @SuppressWarnings("UnusedFormalParameter")
122 122
      */
@@ -128,13 +128,13 @@  discard block
 block discarded – undo
128 128
     /**
129 129
      * Get the pending users that match the filters
130 130
      *
131
-     * @param mixed $filter The filter to use to find a set of users
131
+     * @param boolean $filter The filter to use to find a set of users
132 132
      * @param mixed $select The list of fields to select
133 133
      * @param mixed $top The number of users to select
134 134
      * @param mixed $skip The number of users to skip
135 135
      * @param mixed $orderby The fields to sort by
136 136
      *
137
-     * @return array All users that fit the filters
137
+     * @return boolean All users that fit the filters
138 138
      *
139 139
      * @SuppressWarnings("UnusedFormalParameter")
140 140
      */
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
      *
232 232
      * @param string $hash The hash to search by
233 233
      *
234
-     * @return Auth\User The user whoes hash was specified
234
+     * @return boolean The user whoes hash was specified
235 235
      *
236 236
      * @SuppressWarnings("UnusedFormalParameter")
237 237
      */
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
      *
246 246
      * @param string $hash The hash to search by
247 247
      *
248
-     * @return Auth\PendingUser The user whoes hash was specified
248
+     * @return boolean The user whoes hash was specified
249 249
      *
250 250
      * @SuppressWarnings("UnusedFormalParameter")
251 251
      */
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
     /**
258 258
      * Get the host name this authenticator uses
259 259
      *
260
-     * @return string The host name this authenticator uses
260
+     * @return boolean The host name this authenticator uses
261 261
      */
262 262
     public function getHostName()
263 263
     {
Please login to merge, or discard this patch.
Auth/class.SQLAuthenticator.php 1 patch
Doc Comments   +11 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     /**
141 141
      * Get the data table for Pending Users
142 142
      *
143
-     * @return boolean|\Data\DataTable The Pending User Data Table
143
+     * @return boolean The Pending User Data Table
144 144
      */
145 145
     private function getPendingUserDataTable()
146 146
     {
@@ -189,6 +189,10 @@  discard block
 block discarded – undo
189 189
         return new SQLUser($data, $this);
190 190
     }
191 191
 
192
+    /**
193
+     * @param string $tableName
194
+     * @param string $className
195
+     */
192 196
     private function getEntityByFilter($tableName, $filterStr, $className)
193 197
     {
194 198
         $dataTable = $this->getDataTable($tableName);
@@ -211,6 +215,9 @@  discard block
 block discarded – undo
211 215
         return $this->getEntityByFilter('user', "uid eq '$name'", '\Auth\SQLUser');
212 216
     }
213 217
 
218
+    /**
219
+     * @param string $dataTableName
220
+     */
214 221
     private function getDataByFilter($dataTableName, $filter, $select, $top, $skip, $orderby)
215 222
     {
216 223
         $dataTable = $this->getDataTable($dataTableName);
@@ -276,6 +283,9 @@  discard block
 block discarded – undo
276 283
         return $dataTable->count();
277 284
     }
278 285
 
286
+    /**
287
+     * @param \Data\Filter $filter
288
+     */
279 289
     private function searchPendingUsers($filter, $select, $top, $skip, $orderby)
280 290
     {
281 291
         $userDataTable = $this->getPendingUserDataTable();
Please login to merge, or discard this patch.
Data/class.SQLDataSet.php 1 patch
Doc Comments   +14 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,6 +116,10 @@  discard block
 block discarded – undo
116 116
         return $sql;
117 117
     }
118 118
 
119
+    /**
120
+     * @param boolean|string $count
121
+     * @param boolean|string $skip
122
+     */
119 123
     private function getLimitClause($count, $skip)
120 124
     {
121 125
         if($count === false)
@@ -139,7 +143,7 @@  discard block
 block discarded – undo
139 143
      * @param string $select The colums to read
140 144
      * @param boolean|string $count The number of rows to read
141 145
      * @param boolean|string $skip The number of rows to skip over
142
-     * @param boolean|array $sort The array to sort by or false to not sort
146
+     * @param boolean $sort The array to sort by or false to not sort
143 147
      *
144 148
      * @return false|array An array of all the returned records
145 149
      */
@@ -177,6 +181,9 @@  discard block
 block discarded – undo
177 181
         return $ret;
178 182
     }
179 183
 
184
+    /**
185
+     * @param string $tablename
186
+     */
180 187
     public function update($tablename, $where, $data)
181 188
     {
182 189
         $set = array();
@@ -199,6 +206,9 @@  discard block
 block discarded – undo
199 206
         return true;
200 207
     }
201 208
 
209
+    /**
210
+     * @param string $tablename
211
+     */
202 212
     public function create($tablename, $data)
203 213
     {
204 214
         $set = array();
@@ -222,6 +232,9 @@  discard block
 block discarded – undo
222 232
         return true;
223 233
     }
224 234
 
235
+    /**
236
+     * @param string $tablename
237
+     */
225 238
     public function delete($tablename, $where)
226 239
     {
227 240
         $sql = "DELETE FROM $tablename WHERE $where";
Please login to merge, or discard this patch.
Email/class.SMTPServer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     {
33 33
     }
34 34
 
35
-    public function connect($hostName, $port=25, $useTLS=true)
35
+    public function connect($hostName, $port = 25, $useTLS = true)
36 36
     {
37 37
         $ret = $this->smtp->connect($hostName, $port);
38 38
         if($ret === false)
Please login to merge, or discard this patch.
Email/class.EmailRouter.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,10 @@
 block discarded – undo
41 41
         {
42 42
             $tmp = $this->routeSingle($dest, $rawMessage);
43 43
             $ret[] = $tmp;
44
-            if($tmp === false) $error = true;
44
+            if($tmp === false)
45
+            {
46
+                $error = true;
47
+            }
45 48
         }
46 49
         if($error === true)
47 50
         {
Please login to merge, or discard this patch.