We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -19,8 +19,7 @@ discard block |
||
| 19 | 19 | $shareFrom[$fromAccountId] = array( |
| 20 | 20 | 'Player ID' => $otherPlayer == null ? '-' : $otherPlayer->getPlayerID(), |
| 21 | 21 | 'Player Name' => $otherPlayer == null ? |
| 22 | - '<b>Account</b>: ' . SmrAccount::getAccount($fromAccountId)->getHofDisplayName() : |
|
| 23 | - $otherPlayer->getDisplayName(), |
|
| 22 | + '<b>Account</b>: ' . SmrAccount::getAccount($fromAccountId)->getHofDisplayName() : $otherPlayer->getDisplayName(), |
|
| 24 | 23 | 'All Games' => $gameId == 0 ? '<span class="green">YES</span>' : '<span class="red">NO</span>', |
| 25 | 24 | 'Game ID' => $gameId, |
| 26 | 25 | ); |
@@ -40,8 +39,7 @@ discard block |
||
| 40 | 39 | $shareTo[$toAccountId] = array( |
| 41 | 40 | 'Player ID' => $otherPlayer == null ? '-' : $otherPlayer->getPlayerID(), |
| 42 | 41 | 'Player Name' => $otherPlayer == null ? |
| 43 | - '<b>Account</b>: ' . SmrAccount::getAccount($toAccountId)->getHofDisplayName() : |
|
| 44 | - $otherPlayer->getDisplayName(), |
|
| 42 | + '<b>Account</b>: ' . SmrAccount::getAccount($toAccountId)->getHofDisplayName() : $otherPlayer->getDisplayName(), |
|
| 45 | 43 | 'All Games' => $gameId == 0 ? '<span class="green">YES</span>' : '<span class="red">NO</span>', |
| 46 | 44 | 'Game ID' => $gameId, |
| 47 | 45 | ); |
@@ -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; ?>" /> |
@@ -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 |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | $menuItems[] = array('Link'=>Globals::getPlanetListHREF($alliance_id), 'Text'=>'Defense'); |
| 41 | 41 | $menuItems[] = array('Link'=>Globals::getPlanetListFinancialHREF($alliance_id), 'Text'=>'Financial'); |
| 42 | 42 | // make the selected index bold |
| 43 | - $boldItem =& $menuItems[$selected_index]['Text']; |
|
| 43 | + $boldItem = & $menuItems[$selected_index]['Text']; |
|
| 44 | 44 | $boldItem = '<span class="bold">' . $boldItem . '</span>'; |
| 45 | 45 | |
| 46 | 46 | $template = Smr\Template::getInstance(); |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | 'Text' => 'Game News', |
| 147 | 147 | ]; |
| 148 | 148 | // make the selected index bold |
| 149 | - $boldItem =& $menuItems[$selected_index]['Text']; |
|
| 149 | + $boldItem = & $menuItems[$selected_index]['Text']; |
|
| 150 | 150 | $boldItem = '<b>' . $boldItem . '</b>'; |
| 151 | 151 | |
| 152 | 152 | $template = Smr\Template::getInstance(); |
@@ -163,7 +163,7 @@ |
||
| 163 | 163 | |
| 164 | 164 | // transfer this value to next container |
| 165 | 165 | if (!isset($var[$source])) { |
| 166 | - throw new Exception('Could not find "' . $source. '" in var!'); |
|
| 166 | + throw new Exception('Could not find "' . $source . '" in var!'); |
|
| 167 | 167 | } |
| 168 | 168 | if ($dest === null) { |
| 169 | 169 | $dest = $source; |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | */ |
| 6 | 6 | class GameLink |
| 7 | 7 | { |
| 8 | - public bool $valid = false; // identifies if the message is linked to game data |
|
| 8 | + public bool $valid = false; // identifies if the message is linked to game data |
|
| 9 | 9 | public SmrPlayer $player; |
| 10 | 10 | |
| 11 | 11 | function __construct(Discord\Parts\Channel\Message $message) { |
@@ -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 |
@@ -30,13 +30,13 @@ |
||
| 30 | 30 | const USER_SCORE_NAME = 'User Score'; |
| 31 | 31 | $hofTypes = array(DONATION_NAME=>true, USER_SCORE_NAME=>true); |
| 32 | 32 | foreach ($dbResult->records() as $dbRecord) { |
| 33 | - $hof =& $hofTypes; |
|
| 33 | + $hof = & $hofTypes; |
|
| 34 | 34 | $typeList = explode(':', $dbRecord->getString('type')); |
| 35 | 35 | foreach ($typeList as $type) { |
| 36 | 36 | if (!isset($hof[$type])) { |
| 37 | 37 | $hof[$type] = array(); |
| 38 | 38 | } |
| 39 | - $hof =& $hof[$type]; |
|
| 39 | + $hof = & $hof[$type]; |
|
| 40 | 40 | } |
| 41 | 41 | $hof = true; |
| 42 | 42 | } |