We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ -76,8 +76,13 @@ discard block | ||
| 76 | 76 | <input type="number" name="amount" value="0" min="<?php echo MIN_GLOBAL_RELATIONS; ?>" max="<?php echo MAX_GLOBAL_RELATIONS; ?>" style="width:75px" />  | 
| 77 | 77 | <select name="race"><?php | 
| 78 | 78 |  		foreach (Globals::getRaces() as $race) { | 
| 79 | - if ($race['Race ID'] == $ThisPlayer->getRaceID()) continue; | |
| 80 | - if ($race['Race ID'] == RACE_NEUTRAL) continue; ?> | |
| 79 | +			if ($race['Race ID'] == $ThisPlayer->getRaceID()) { | |
| 80 | + continue; | |
| 81 | + } | |
| 82 | +			if ($race['Race ID'] == RACE_NEUTRAL) { | |
| 83 | + continue; | |
| 84 | + } | |
| 85 | + ?> | |
| 81 | 86 | <option value="<?php echo $race['Race ID']; ?>"><?php echo $race['Race Name']; ?></option><?php | 
| 82 | 87 | } ?> | 
| 83 | 88 | </select>   | 
| @@ -88,8 +93,13 @@ discard block | ||
| 88 | 93 | <form method="POST" action="<?php echo $ChangeRaceHREF; ?>"> | 
| 89 | 94 | <select name="race"><?php | 
| 90 | 95 |  		foreach (Globals::getRaces() as $race) { | 
| 91 | - if ($race['Race ID'] == $ThisPlayer->getRaceID()) continue; | |
| 92 | - if ($race['Race ID'] == RACE_NEUTRAL) continue; ?> | |
| 96 | +			if ($race['Race ID'] == $ThisPlayer->getRaceID()) { | |
| 97 | + continue; | |
| 98 | + } | |
| 99 | +			if ($race['Race ID'] == RACE_NEUTRAL) { | |
| 100 | + continue; | |
| 101 | + } | |
| 102 | + ?> | |
| 93 | 103 | <option value="<?php echo $race['Race ID']; ?>"><?php echo $race['Race Name']; ?></option><?php | 
| 94 | 104 | } ?> | 
| 95 | 105 | </select>   | 
| @@ -1,10 +1,10 @@ | ||
| 1 | -<?php if(isset($Preview)) { ?><table class="standard"><tr><td><?php echo bbifyMessage($Preview); ?></td></tr></table><?php } ?> | |
| 1 | +<?php if (isset($Preview)) { ?><table class="standard"><tr><td><?php echo bbifyMessage($Preview); ?></td></tr></table><?php } ?> | |
| 2 | 2 | <form name="MessageSendForm" method="POST" action="<?php echo $MessageSendFormHref; ?>"> | 
| 3 | 3 | <p> | 
| 4 | 4 | <b>From: </b><?php echo $ThisPlayer->getDisplayName(); ?><br /> | 
| 5 | -		<b>To: </b><?php if(isset($Receiver) && is_object($Receiver)) {	echo $Receiver->getDisplayName(); } else { echo $Receiver; } ?> | |
| 5 | +		<b>To: </b><?php if (isset($Receiver) && is_object($Receiver)) {	echo $Receiver->getDisplayName(); } else { echo $Receiver; } ?> | |
| 6 | 6 | </p> | 
| 7 | -	<textarea spellcheck="true" name="message" required><?php if(isset($Preview)) { echo $Preview; } ?></textarea><br /> | |
| 7 | +	<textarea spellcheck="true" name="message" required><?php if (isset($Preview)) { echo $Preview; } ?></textarea><br /> | |
| 8 | 8 | <br /> | 
| 9 | 9 | <input type="submit" name="action" value="Send message" /> <input type="submit" name="action" value="Preview message" /> | 
| 10 | 10 | </form> | 
| @@ -44,7 +44,10 @@ | ||
| 44 | 44 | <td> | 
| 45 | 45 | <select name="game_type"><?php | 
| 46 | 46 |  			foreach (SmrGame::GAME_TYPES as $GameTypeID => $GameType) { | 
| 47 | - ?><option value="<?php echo $GameTypeID; ?>" <?php if ($GameType == $Game['gameType']) echo 'selected'; ?>><?php echo $GameType; ?></option><?php | |
| 47 | +				?><option value="<?php echo $GameTypeID; ?>" <?php if ($GameType == $Game['gameType']) { | |
| 48 | + echo 'selected'; | |
| 49 | + } | |
| 50 | + ?>><?php echo $GameType; ?></option><?php | |
| 48 | 51 | } ?> | 
| 49 | 52 | </select> | 
| 50 | 53 | </td> |