We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ -10,7 +10,10 @@ | ||
| 10 | 10 | <td style="width: 80%" class="center"> | 
| 11 | 11 | Local Map of the Known <span class="big bold"><?php echo $GalaxyName ?></span> Galaxy | 
| 12 | 12 | <br /><br /> | 
| 13 | - <?php if (isset($Error)) echo $Error; ?> | |
| 13 | +			<?php if (isset($Error)) { | |
| 14 | + echo $Error; | |
| 15 | +} | |
| 16 | +?> | |
| 14 | 17 | </td> | 
| 15 | 18 | <td style="width: 10%"></td> | 
| 16 | 19 | </tr> | 
| @@ -1,5 +1,8 @@ | ||
| 1 | 1 | <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | 
| 2 | -<title><?php echo PAGE_TITLE; ?><?php if (isset($GameName)) echo ": $GameName"; ?></title> | |
| 2 | +<title><?php echo PAGE_TITLE; ?><?php if (isset($GameName)) { | |
| 3 | + echo ": $GameName"; | |
| 4 | +} | |
| 5 | +?></title> | |
| 3 | 6 | <meta http-equiv="pragma" content="no-cache" /><?php | 
| 4 | 7 |  if (!is_object($ThisAccount) || $ThisAccount->isDefaultCSSEnabled()) { ?> | 
| 5 | 8 | <link rel="stylesheet" type="text/css" href="<?php echo $CSSLink; ?>" /> | 
| @@ -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> | 
| @@ -375,8 +375,9 @@ | ||
| 375 | 375 | |
| 376 | 376 | if (!$player->isDead() && $player->getNewbieTurns() <= NEWBIE_TURNS_WARNING_LIMIT && | 
| 377 | 377 | $player->getNewbieWarning() && | 
| 378 | - $var['url'] != 'newbie_warning_processing.php') | |
| 379 | -			Page::create('newbie_warning_processing.php')->go(); | |
| 378 | +			$var['url'] != 'newbie_warning_processing.php') { | |
| 379 | +					Page::create('newbie_warning_processing.php')->go(); | |
| 380 | + } | |
| 380 | 381 | } | 
| 381 | 382 | |
| 382 | 383 | // Initialize the template | 
| @@ -90,18 +90,22 @@ | ||
| 90 | 90 | |
| 91 | 91 |  		echo ('<tr>'); | 
| 92 | 92 |  		echo ('<td colspan="5">'); | 
| 93 | - if (isset($previous_topic_id) && $previous_topic_id > 0) | |
| 94 | -			echo ('<b>Previous:</b> <a href="/manual.php?' . $previous_topic_id . '">' . get_numbering($previous_topic_id) . $previous_topic . '</a>   '); | |
| 95 | - if (isset($up_topic_id) && $up_topic_id > 0) | |
| 96 | -			echo ('<b>Up:</b> <a href="/manual.php?' . $up_topic_id . '">' . get_numbering($up_topic_id) . $up_topic . '</a>   '); | |
| 97 | - if (isset($next_topic_id) && $next_topic_id > 0) | |
| 98 | -			echo ('<b>Next:</b> <a href="/manual.php?' . $next_topic_id . '">' . get_numbering($next_topic_id) . $next_topic . '</a>'); | |
| 93 | +		if (isset($previous_topic_id) && $previous_topic_id > 0) { | |
| 94 | +					echo ('<b>Previous:</b> <a href="/manual.php?' . $previous_topic_id . '">' . get_numbering($previous_topic_id) . $previous_topic . '</a>   '); | |
| 95 | + } | |
| 96 | +		if (isset($up_topic_id) && $up_topic_id > 0) { | |
| 97 | +					echo ('<b>Up:</b> <a href="/manual.php?' . $up_topic_id . '">' . get_numbering($up_topic_id) . $up_topic . '</a>   '); | |
| 98 | + } | |
| 99 | +		if (isset($next_topic_id) && $next_topic_id > 0) { | |
| 100 | +					echo ('<b>Next:</b> <a href="/manual.php?' . $next_topic_id . '">' . get_numbering($next_topic_id) . $next_topic . '</a>'); | |
| 101 | + } | |
| 99 | 102 |  		echo ('</tr>'); | 
| 100 | 103 | |
| 101 | 104 |  		echo ('</table>'); | 
| 102 | - } else | |
| 103 | -		echo ('Invalid Topic!'); | |
| 104 | -} | |
| 105 | +	} else { | |
| 106 | +			echo ('Invalid Topic!'); | |
| 107 | + } | |
| 108 | + } | |
| 105 | 109 | |
| 106 | 110 |  function echo_content($topic_id) { | 
| 107 | 111 | // database object | 
| @@ -76,7 +76,10 @@ 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 (Smr\Race::getPlayableNames() as $raceID => $raceName) { | 
| 79 | - if ($raceID == $ThisPlayer->getRaceID()) continue; ?> | |
| 79 | +			if ($raceID == $ThisPlayer->getRaceID()) { | |
| 80 | + continue; | |
| 81 | + } | |
| 82 | + ?> | |
| 80 | 83 | <option value="<?php echo $raceID; ?>"><?php echo $raceName; ?></option><?php | 
| 81 | 84 | } ?> | 
| 82 | 85 | </select>   | 
| @@ -87,7 +90,10 @@ discard block | ||
| 87 | 90 | <form method="POST" action="<?php echo $ChangeRaceHREF; ?>"> | 
| 88 | 91 | <select name="race"><?php | 
| 89 | 92 |  		foreach (Smr\Race::getPlayableNames() as $raceID => $raceName) { | 
| 90 | - if ($raceID == $ThisPlayer->getRaceID()) continue; ?> | |
| 93 | +			if ($raceID == $ThisPlayer->getRaceID()) { | |
| 94 | + continue; | |
| 95 | + } | |
| 96 | + ?> | |
| 91 | 97 | <option value="<?php echo $raceID; ?>"><?php echo $raceName; ?></option><?php | 
| 92 | 98 | } ?> | 
| 93 | 99 | </select>   |