class/Exception/RoommateCompatibilityException.php
Method resolveCode
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function resolveCode($code)
{
switch($code) {
case E_ROOMMATE_MALFORMED_USERNAME:
return "Malformed Username.";
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
Open
return "You can not choose a student of a different type than yourself (i.e. a freshmen student can only request another freshmen student, and not a transfer or continuing student).";
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
Open
return "Your requested roommate does not seem to have a student record. Please be sure you typed the username correctly.";
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
Open
return "Unknown Error $result.";
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
Open
return "You already have an uncomfirmed roommate request.";
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
Open
return "Your requested roommate has not filled out a housing application.";
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
Open
return "You already have a pending roommate request.";
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
Open
return "Please select a roommate of the same sex as yourself.";
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
Open
return "Your roommate request could not be completed because you and/or your requested roommate have applied for different Residential Learning Communities.";
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
Open
return "Your roommate request could not be completed because you and/or your requested roommate are assigned to a Residential Learning Community, and you are both not a member of the same Residential Learning Community.";
- Create a ticketCreate a ticket