Code Duplication    Length = 8-8 lines in 2 locations

html/inc/team.inc 2 locations

@@ 177-184 (lines=8) @@
174
    if (count($team->admins)) {
175
        $first = true;
176
        $x = "";
177
        foreach ($team->admins as $a) {
178
            if ($first) {
179
                $first = false;
180
            } else {
181
                $x .= " · ";
182
            }
183
            $x .= user_links($a, BADGE_HEIGHT_MEDIUM);
184
        }
185
        row2(tra('Admins'), $x);
186
    }
187
    $x = "0";
@@ 191-198 (lines=8) @@
188
    if (count($team->new_members)) {
189
        $first = true;
190
        $x = "";
191
        foreach ($team->new_members as $a) {
192
            if ($first) {
193
                $first = false;
194
            } else {
195
                $x .= " · ";
196
            }
197
            $x .= user_links($a, BADGE_HEIGHT_MEDIUM);
198
        }
199
    }
200
    row2(tra('New members in last day'), $x);
201
    row2(tra('Total members'), "$team->nusers (<a href=team_members.php?teamid=$team->id&amp;offset=0&amp;sort_by=expavg_credit>".tra('view')."</a>)");