Completed
Pull Request — master (#6)
by Patrick
03:09
created
Auth/class.Group.php 1 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.