Completed
Pull Request — master (#6)
by Patrick
03:09
created
Auth/class.Group.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
         return true;
106 106
     }
107 107
 
108
-    static function from_name($name, $data=false)
108
+    static function from_name($name, $data = false)
109 109
     {
110 110
         return false;
111 111
     }
Please login to merge, or discard this patch.
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,10 @@
 block discarded – undo
90 90
                 {
91 91
                     $isLast = true;
92 92
                 }
93
-                if(!isset($group->member[$i]->type)) continue;
93
+                if(!isset($group->member[$i]->type))
94
+                {
95
+                    continue;
96
+                }
94 97
                 if($group->member[$i]->type === 'Group')
95 98
                 {
96 99
                     $this->addMember($group->member[$i]->cn, true, $isLast);
Please login to merge, or discard this patch.
Auth/class.SQLAuthenticator.php 1 patch
Braces   +21 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace Auth;
3 3
 
4
-if(!function_exists('password_hash') || !function_exists('password_verify')) 
4
+if(!function_exists('password_hash') || !function_exists('password_verify'))
5 5
 {
6 6
     define('PASSWORD_BCRYPT', 1);
7 7
     define('PASSWORD_DEFAULT', PASSWORD_BCRYPT);
@@ -149,7 +149,10 @@  discard block
 block discarded – undo
149 149
 
150 150
     public function login($username, $password)
151 151
     {
152
-        if($this->current === false) return false;
152
+        if($this->current === false)
153
+        {
154
+            return false;
155
+        }
153 156
         $userDataTable = $this->getDataTable('user');
154 157
         $filter = new \Data\Filter("uid eq '$username'");
155 158
         $users = $userDataTable->read($filter);
@@ -239,9 +242,15 @@  discard block
 block discarded – undo
239 242
 
240 243
     public function getPendingUserCount()
241 244
     {
242
-        if($this->pending === false) return 0;
245
+        if($this->pending === false)
246
+        {
247
+            return 0;
248
+        }
243 249
         $dataTable = $this->getPendingUserDataTable();
244
-        if($dataTable === null) return 0;
250
+        if($dataTable === null)
251
+        {
252
+            return 0;
253
+        }
245 254
         return $dataTable->count();
246 255
     }
247 256
 
@@ -278,7 +287,10 @@  discard block
 block discarded – undo
278 287
 
279 288
     public function getPendingUsersByFilter($filter, $select = false, $top = false, $skip = false, $orderby = false)
280 289
     {
281
-        if($this->pending === false) return false;
290
+        if($this->pending === false)
291
+        {
292
+            return false;
293
+        }
282 294
         if($filter !== false && !$filter->contains('hash'))
283 295
         {
284 296
             return $this->searchPendingUsers($filter, $select, $top, $skip, $orderby);
@@ -299,7 +311,10 @@  discard block
 block discarded – undo
299 311
 
300 312
     public function createPendingUser($user)
301 313
     {
302
-        if($this->pending === false) return false;
314
+        if($this->pending === false)
315
+        {
316
+            return false;
317
+        }
303 318
         $userDataTable = $this->getPendingUserDataTable();
304 319
         if(isset($user->password2))
305 320
         {
Please login to merge, or discard this patch.
LDAP/class.LDAPObject.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -3,19 +3,19 @@  discard block
 block discarded – undo
3 3
 
4 4
 class LDAPObject extends \SerializableObject
5 5
 {
6
-     public $server;
6
+        public $server;
7 7
 
8
-     function __construct($array = false, $server = false)
9
-     {
10
-         parent::__construct($array);
11
-         $this->server = $server;
12
-     }
8
+        function __construct($array = false, $server = false)
9
+        {
10
+            parent::__construct($array);
11
+            $this->server = $server;
12
+        }
13 13
 
14
-     public function jsonSerialize()
15
-     {
16
-         $ret = array();
17
-         foreach($this as $key => $value)
18
-         {
14
+        public function jsonSerialize()
15
+        {
16
+            $ret = array();
17
+            foreach($this as $key => $value)
18
+            {
19 19
             if($key === 'server' || $key === 'count') continue;
20 20
             if(is_numeric($key)) continue;
21 21
             if($key === 'jpegphoto')
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
             {
32 32
                 $ret[$key] = $value;
33 33
             }
34
-         }
35
-         return $ret;
36
-     }
34
+            }
35
+            return $ret;
36
+        }
37 37
 }
38 38
 
39 39
 ?>
Please login to merge, or discard this patch.