Code Duplication    Length = 6-6 lines in 2 locations

src/dbo/groups.php 2 locations

@@ 161-166 (lines=6) @@
158
    // Push to arrays everyone, who is not in list of current members.
159
    while (($user = $list->fetch()))
160
    {
161
        if (!in_array(ustrtolower($user['username']), $members))
162
        {
163
            array_push($account_id, $user['account_id']);
164
            array_push($username,   $user['username']);
165
            array_push($fullname,   $user['fullname']);
166
        }
167
    }
168
169
    // If LDAP is enabled, add all LDAP non-members too.
@@ 178-183 (lines=6) @@
175
        // Push to arrays everyone, who is not in list of current members.
176
        foreach ($list as $user)
177
        {
178
            if (!in_array(ustrtolower($user['username']), $members))
179
            {
180
                array_push($account_id, NULL);
181
                array_push($username,   $user['username']);
182
                array_push($fullname,   $user['fullname']);
183
            }
184
        }
185
    }
186