Code Duplication    Length = 8-12 lines in 3 locations

Auth/class.LDAPUser.php 1 location

@@ 25-35 (lines=11) @@
22
            }
23
            $this->ldapObj = $users[0];
24
        }
25
        else
26
        {
27
            if(isset($data['extended']))
28
            {
29
                $this->ldapObj = $data['extended'];
30
            }
31
            else
32
            {
33
                $this->ldapObj = $data;
34
            }
35
        }
36
    }
37
38
    private function check_child_group($array)

Auth/class.SQLUser.php 1 location

@@ 13-20 (lines=8) @@
10
    {
11
        $this->data = array();
12
        $this->auth = $auth;
13
        if($data !== false)
14
        {
15
            $this->data = $data;
16
            if(isset($data['extended']))
17
            {
18
                $this->data = $data['extended'];
19
            }
20
        }
21
    }
22
23
    public function isInGroupNamed($name)

Auth/class.FlipsideAPIUser.php 1 location

@@ 15-26 (lines=12) @@
12
13
    public function __construct($data = false)
14
    {
15
        if(($data !== false) && !isset($data['extended']))
16
        {
17
            //Generic user object
18
            //TODO get from API
19
        }
20
        else
21
        {
22
            if(isset($data['extended']))
23
            {
24
                $this->userData = $data['extended'];
25
            }
26
        }
27
    }
28
29
    public function isInGroupNamed($name)