Completed
Push — master ( 8a67ce...fe643b )
by Patrick
02:59
created
Auth/class.SQLUser.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -6,14 +6,14 @@  discard block
 block discarded – undo
6 6
     private $data;
7 7
     private $auth;
8 8
 
9
-    function __construct($data=false, $auth=false)
9
+    function __construct($data = false, $auth = false)
10 10
     {
11 11
         $this->data = array();
12 12
         $this->auth = $auth;
13
-        if($data !== false)
13
+        if ($data !== false)
14 14
         {
15 15
             $this->data = $data;
16
-            if(isset($data['extended']))
16
+            if (isset($data['extended']))
17 17
             {
18 18
                 $this->data = $data['extended'];
19 19
             }
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 
23 23
     function isInGroupNamed($name)
24 24
     {
25
-        if($this->auth === false)
25
+        if ($this->auth === false)
26 26
         {
27 27
             return false;
28 28
         }
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         $uid = $this->getUid();
32 32
         $filter = new \Data\Filter("uid eq '$uid' and gid eq '$name'");
33 33
         $groups = $group_data_table->read($filter);
34
-        if($groups === false || !isset($groups[0]))
34
+        if ($groups === false || !isset($groups[0]))
35 35
         {
36 36
             return false;
37 37
         }
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
     function getEmail()
43 43
     {
44
-        if(isset($this->data['mail']))
44
+        if (isset($this->data['mail']))
45 45
         {
46 46
              return $this->data['mail'];
47 47
         }
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
     function getUid()
52 52
     {
53
-        if(isset($this->data['uid']))
53
+        if (isset($this->data['uid']))
54 54
         {
55 55
             return $this->data['uid'];
56 56
         }
Please login to merge, or discard this patch.