Code Duplication    Length = 3-5 lines in 2 locations

html/user/donations.php 1 location

@@ 322-326 (lines=5) @@
319
    echo row2(tra("Anonymous donation")."<br><small>".tra("Select this if you dont want your name and account number displayed in
320
donator lists.<br>If not checked, you will be recorded as user ID %1", $tmp_user_name)."</small>",
321
        "<input type=\"checkbox\" name=\"anonymous\" id=\"anonymous\" value=\"1\"><label for=\"anonymous\">".tra("Yes")."</label>");
322
} else {
323
    echo row2(tra("Anonymous donation")."<br><small>".tra("To assign the donation with your user ID, please log in.")."</small>",
324
        "<input type=\"checkbox\" name=\"anonymous\" id=\"anonymous\" value=\"1\" checked=\"checked\" disabled=\"disabled\">
325
        <label for=\"anonymous\">".tra("Yes")."</label>");
326
}
327
echo row2("", "<input class=\"btn btn-primary\" type=\"submit\" value=\"".tra("Proceed")."\">");
328
echo row1(tra("Donations are accepted through")."<br><img src=\"img/paypal_logo.png\" alt=\"PayPal\">");
329
end_table();

html/inc/user.inc 1 location

@@ 398-400 (lines=3) @@
395
                $x .= "<p class=\"text-danger\">".tra("(foundership change request pending)")."</p>";
396
            }
397
            row2(tra("Member of team"), $x);
398
        } else {
399
            row2(tra("Team"), tra("None")." &middot; <a href=\"team_search.php\">".tra("find a team")."</a>");
400
        }
401
        
402
        $teams_founded = BoincTeam::enum("userid=$user->id");
403
        foreach ($teams_founded as $team) {