Completed
Pull Request — master (#6)
by Patrick
03:39
created
class.FlipsideCAPTCHA.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -69,6 +69,9 @@
 block discarded – undo
69 69
         return $data[0]['hint'];
70 70
     }
71 71
 
72
+    /**
73
+     * @return string
74
+     */
72 75
     private function get_answer()
73 76
     {
74 77
         $dataset = DataSetFactory::get_data_set('profiles');
Please login to merge, or discard this patch.
class.SerializableObject.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     /**
38 38
      * Serialize the object into a format consumable by json_encode
39 39
      *
40
-     * @return mixed The object in a more serialized format
40
+     * @return SerializableObject The object in a more serialized format
41 41
      */
42 42
     public function jsonSerialize()
43 43
     {
Please login to merge, or discard this patch.
Data/class.FilterClause.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -12,11 +12,17 @@
 block discarded – undo
12 12
         if($string !== false) $this->process_filter_string($string);
13 13
     }
14 14
 
15
+    /**
16
+     * @param string $needle
17
+     */
15 18
     static function str_startswith($haystack, $needle)
16 19
     {
17 20
         return substr($haystack, 0, strlen($needle)) === $needle;
18 21
     }
19 22
 
23
+    /**
24
+     * @param boolean $string
25
+     */
20 26
     protected function process_filter_string($string)
21 27
     {
22 28
         if(self::str_startswith($string, 'substringof') || self::str_startswith($string, 'contains') || 
Please login to merge, or discard this patch.
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,10 @@
 block discarded – undo
9 9
 
10 10
     function __construct($string=false)
11 11
     {
12
-        if($string !== false) $this->process_filter_string($string);
12
+        if($string !== false)
13
+        {
14
+            $this->process_filter_string($string);
15
+        }
13 16
     }
14 17
 
15 18
     static function str_startswith($haystack, $needle)
Please login to merge, or discard this patch.
Data/class.SQLDataSet.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -17,6 +17,9 @@
 block discarded – undo
17 17
         }
18 18
     }
19 19
 
20
+    /**
21
+     * @param string $sql
22
+     */
20 23
     function _get_row_count_for_query($sql)
21 24
     {
22 25
         $stmt = $this->pdo->query($sql);
Please login to merge, or discard this patch.
Data/class.SQLDataTable.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -6,6 +6,9 @@
 block discarded – undo
6 6
     protected $dataset;
7 7
     protected $tablename;
8 8
 
9
+    /**
10
+     * @param SQLDataSet $dataset
11
+     */
9 12
     function __construct($dataset, $tablename)
10 13
     {
11 14
         $this->dataset   = $dataset;
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -65,11 +65,11 @@  discard block
 block discarded – undo
65 65
         $ret = $this->dataset->read($this->tablename, $where, 'COUNT(*)');
66 66
         if($ret === false || !isset($ret[0]) || !isset($ret[0]['COUNT(*)']))
67 67
         {
68
-             return false;
68
+                return false;
69 69
         }
70 70
         else
71 71
         {
72
-             return $ret[0]['COUNT(*)'];
72
+                return $ret[0]['COUNT(*)'];
73 73
         }
74 74
     }
75 75
   
@@ -93,8 +93,8 @@  discard block
 block discarded – undo
93 93
 
94 94
     function update($filter, $data)
95 95
     {
96
-         $where = $filter->to_sql_string();
97
-         return $this->dataset->update($this->tablename, $where, $data);
96
+            $where = $filter->to_sql_string();
97
+            return $this->dataset->update($this->tablename, $where, $data);
98 98
     }
99 99
 
100 100
     function create($data)
Please login to merge, or discard this patch.
Email/class.Email.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     /**
73 73
      * Who is this email going to
74 74
      *
75
-     * @return array The recipients of the email
75
+     * @return string The recipients of the email
76 76
      */
77 77
     public function getToAddresses()
78 78
     {
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     /**
83 83
      * Who is this email going to (CC)
84 84
      *
85
-     * @return array The recipients of the email
85
+     * @return string The recipients of the email
86 86
      */
87 87
     public function getCCAddresses()
88 88
     {
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     /**
93 93
      * Who is this email going to (BCC)
94 94
      *
95
-     * @return array The recipients of the email
95
+     * @return string The recipients of the email
96 96
      */
97 97
     public function getBCCAddresses()
98 98
     {
Please login to merge, or discard this patch.
Email/class.EmailService.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -12,6 +12,9 @@
 block discarded – undo
12 12
         return false;
13 13
     }
14 14
 
15
+    /**
16
+     * @param Email $email
17
+     */
15 18
     public function sendEmail($email)
16 19
     {
17 20
         return false;
Please login to merge, or discard this patch.
LDAP/class.LDAPServer.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -117,6 +117,9 @@  discard block
 block discarded – undo
117 117
         $this->connect = false;
118 118
     }
119 119
 
120
+    /**
121
+     * @param string $password
122
+     */
120 123
     function bind($cn=null, $password=null)
121 124
     {
122 125
         $res = false;
@@ -199,6 +202,9 @@  discard block
 block discarded – undo
199 202
         return $ret;
200 203
     }
201 204
 
205
+    /**
206
+     * @param boolean $filter
207
+     */
202 208
     private function filterToString($filter)
203 209
     {
204 210
         if($filter === false)
Please login to merge, or discard this patch.
Auth/class.LDAPGroup.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -264,7 +264,7 @@
 block discarded – undo
264 264
             throw new \Exception('data must be set for LDAPGroup');
265 265
         }
266 266
         $filter = new \Data\Filter("cn eq $name");
267
-	$group = $data->read($data->group_base, $filter);
267
+    $group = $data->read($data->group_base, $filter);
268 268
         if($group === false || !isset($group[0]))
269 269
         {
270 270
             return false;
Please login to merge, or discard this patch.
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -179,7 +179,10 @@
 block discarded – undo
179 179
         $count = count($groups);
180 180
         for($i = 0; $i < $count; $i++)
181 181
         {
182
-            if($groups[$i] === false || $groups[$i] === null) continue;
182
+            if($groups[$i] === false || $groups[$i] === null)
183
+            {
184
+                continue;
185
+            }
183 186
             array_push($data, new LDAPGroup($groups[$i]));
184 187
         }
185 188
         $users = $this->server->read($this->server->user_base, $userFilter, false, $select);
Please login to merge, or discard this patch.